CSSValueList::CSSValueList(CSSParserValueList& parserValues) : CSSValue(ValueListClass) { m_valueListSeparator = SpaceSeparator; m_values.reserveInitialCapacity(parserValues.size()); for (unsigned i = 0, size = parserValues.size(); i < size; ++i) m_values.uncheckedAppend(parserValues.valueAt(i)->createCSSValue()); }
CSSValueList::CSSValueList(CSSParserValueList& parserValues) : CSSValue(ValueListClass) { m_valueListSeparator = SpaceSeparator; m_values.reserveInitialCapacity(parserValues.size()); for (unsigned i = 0, size = parserValues.size(); i < size; ++i) { RefPtr<CSSValue> value = parserValues.valueAt(i)->createCSSValue(); ASSERT(value); m_values.uncheckedAppend(value.releaseNonNull()); } }
void CSSParserValueList::extend(CSSParserValueList& valueList) { for (unsigned int i = 0; i < valueList.size(); ++i) m_values.append(*(valueList.valueAt(i))); }
void CSSParserValueList::stealValues(CSSParserValueList& valueList) { for (unsigned i = 0; i < valueList.size(); ++i) m_values.append(*(valueList.valueAt(i))); valueList.clearAndLeakValues(); }