CSSValueList::CSSValueList(const CSSValueList& cloneFrom) : CSSValue(cloneFrom.classType(), /* isCSSOMSafe */ true) { m_valueListSeparator = cloneFrom.m_valueListSeparator; m_values.reserveInitialCapacity(cloneFrom.m_values.size()); for (unsigned i = 0, size = cloneFrom.m_values.size(); i < size; ++i) m_values.uncheckedAppend(*cloneFrom.m_values[i]->cloneForCSSOM()); }
CSSValueList::CSSValueList(const CSSValueList& cloneFrom) : CSSValue(cloneFrom.classType(), /* isCSSOMSafe */ true) { m_valueListSeparator = cloneFrom.m_valueListSeparator; m_values.resize(cloneFrom.m_values.size()); for (unsigned i = 0; i < m_values.size(); ++i) m_values[i] = cloneFrom.m_values[i]->cloneForCSSOM(); }