bool CSSVariableData::resolveTokenRange(const CustomPropertyValueMap& customProperties, CSSParserTokenRange range, Vector<CSSParserToken>& result) const { bool success = true; while (!range.atEnd()) { if (range.peek().functionId() == CSSValueVar) success &= resolveVariableReference(customProperties, range.consumeBlock(), result); else result.append(range.consume()); } return success; }
bool CSSVariableResolver::resolveTokenRange(CSSParserTokenRange range, Vector<CSSParserToken>& result) { bool success = true; while (!range.atEnd()) { if (range.peek().functionId() == CSSValueVar) { success &= resolveVariableReference(range.consumeBlock(), result); } else if (range.peek().type() == AtKeywordToken && range.peek().valueEqualsIgnoringASCIICase("apply") && RuntimeEnabledFeatures::cssApplyAtRulesEnabled()) { resolveApplyAtRule(range, result); } else { result.append(range.consume()); } } return success; }