• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/WebCore-7537.78.1/css/

Lines Matching refs:tokens

403 static ParseState checkDepthAndIndex(int* depth, unsigned index, CSSParserValueList* tokens)
408 if (index >= tokens->size())
415 PassRefPtr<CSSCalcExpressionNode> parseCalc(CSSParserValueList* tokens)
419 bool ok = parseValueExpression(tokens, 0, &index, &result);
420 ASSERT_WITH_SECURITY_IMPLICATION(index <= tokens->size());
421 if (!ok || index != tokens->size())
431 char operatorValue(CSSParserValueList* tokens, unsigned index)
433 if (index >= tokens->size())
435 CSSParserValue* value = tokens->valueAt(index);
442 bool parseValue(CSSParserValueList* tokens, unsigned* index, Value* result)
444 CSSParserValue* parserValue = tokens->valueAt(*index);
459 bool parseValueTerm(CSSParserValueList* tokens, int depth, unsigned* index, Value* result)
461 if (checkDepthAndIndex(&depth, *index, tokens) != OK)
464 if (operatorValue(tokens, *index) == '(') {
466 if (!parseValueExpression(tokens, depth, &currentIndex, result))
469 if (operatorValue(tokens, currentIndex) != ')')
475 return parseValue(tokens, index, result);
478 bool parseValueMultiplicativeExpression(CSSParserValueList* tokens, int depth, unsigned* index, Value* result)
480 if (checkDepthAndIndex(&depth, *index, tokens) != OK)
483 if (!parseValueTerm(tokens, depth, index, result))
486 while (*index < tokens->size() - 1) {
487 char operatorCharacter = operatorValue(tokens, *index);
493 if (!parseValueTerm(tokens, depth, index, &rhs))
501 ASSERT_WITH_SECURITY_IMPLICATION(*index <= tokens->size());
505 bool parseAdditiveValueExpression(CSSParserValueList* tokens, int depth, unsigned* index, Value* result)
507 if (checkDepthAndIndex(&depth, *index, tokens) != OK)
510 if (!parseValueMultiplicativeExpression(tokens, depth, index, result))
513 while (*index < tokens->size() - 1) {
514 char operatorCharacter = operatorValue(tokens, *index);
520 if (!parseValueMultiplicativeExpression(tokens, depth, index, &rhs))
528 ASSERT_WITH_SECURITY_IMPLICATION(*index <= tokens->size());
532 bool parseValueExpression(CSSParserValueList* tokens, int depth, unsigned* index, Value* result)
534 return parseAdditiveValueExpression(tokens, depth, index, result);