Lines Matching defs:VAL
737 // Change the unit type of the numeric val to match.
1409 RefPtr<CSSPrimitiveValue> val = primitiveValueCache()->createValue(pair.release());
1410 addProperty(propId, val.release(), important);
1548 PassRefPtr<CSSValue> val = parseTransform();
1549 if (val) {
1550 addProperty(propId, val, important);
1588 RefPtr<CSSValue> val = primitiveValueCache()->createValue(value->fValue, (CSSPrimitiveValue::UnitTypes)value->unit);
1589 if (val) {
1590 addProperty(propId, val.release(), important);
1623 RefPtr<CSSValue> val;
1624 if (parseAnimationProperty(propId, val)) {
1625 addProperty(propId, val.release(), important);
2114 CSSParserValue* val = m_valueList->current();
2115 if (val->unit == CSSParserValue::Operator && val->iValue == ',') {
2261 CSSParserValue* val = m_valueList->current();
2262 if (val->unit == CSSParserValue::Operator && val->iValue == ',') {
2277 RefPtr<CSSValue> val;
2278 if (parseAnimationProperty(properties[i], val)) {
2280 addAnimationValue(values[i], val.release());
2319 CSSParserValue* val = m_valueList->current();
2320 if (val->unit == CSSParserValue::Operator && val->iValue == ',') {
2335 RefPtr<CSSValue> val;
2336 if (parseAnimationProperty(properties[i], val)) {
2338 addAnimationValue(values[i], val.release());
2561 while (CSSParserValue* val = m_valueList->current()) {
2563 if (val->unit == CSSPrimitiveValue::CSS_STRING)
2564 parsedValue = CSSPrimitiveValue::create(val->string, CSSPrimitiveValue::CSS_STRING);
2585 while (CSSParserValue* val = m_valueList->current()) {
2587 if (val->unit == CSSPrimitiveValue::CSS_URI && m_styleSheet) {
2591 parsedValue = CSSImageValue::create(m_styleSheet->completeURL(val->string));
2592 } else if (val->unit == CSSParserValue::Function) {
2594 CSSParserValueList* args = val->function->args.get();
2597 if (equalIgnoringCase(val->function->name, "attr(")) {
2601 } else if (equalIgnoringCase(val->function->name, "counter(")) {
2605 } else if (equalIgnoringCase(val->function->name, "counters(")) {
2609 } else if (isGeneratedImageValue(val)) {
2614 } else if (val->unit == CSSPrimitiveValue::CSS_IDENT) {
2623 switch (val->id) {
2630 parsedValue = primitiveValueCache()->createIdentifierValue(val->id);
2632 } else if (val->unit == CSSPrimitiveValue::CSS_STRING) {
2633 parsedValue = primitiveValueCache()->createValue(val->string, CSSPrimitiveValue::CSS_STRING);
2914 CSSParserValue* val;
2937 while ((val = m_valueList->current())) {
2942 if (val->unit != CSSParserValue::Operator || val->iValue != ',')
2956 if (val->id == CSSValueScroll || val->id == CSSValueFixed || val->id == CSSValueLocal) {
2957 currValue = primitiveValueCache()->createIdentifierValue(val->id);
2972 if (val->id == CSSValueBorder || val->id == CSSValuePadding || val->id == CSSValueContent ||
2973 val->id == CSSValueBorderBox || val->id == CSSValuePaddingBox || val->id == CSSValueContentBox ||
2975 (val->id == CSSValueText || val->id == CSSValueWebkitText))) {
2976 currValue = primitiveValueCache()->createIdentifierValue(val->id);
2981 if (parseBackgroundClip(val, currValue, primitiveValueCache()))
2985 if (val->id == CSSValueBorderBox || val->id == CSSValuePaddingBox || val->id == CSSValueContentBox) {
2986 currValue = primitiveValueCache()->createIdentifierValue(val->id);
3011 if ((val->id >= CSSValueClear && val->id <= CSSValuePlusLighter) || val->id == CSSValueHighlight) {
3012 currValue = primitiveValueCache()->createIdentifierValue(val->id);
3257 CSSParserValue* val;
3263 while ((val = m_valueList->current())) {
3266 if (val->unit != CSSParserValue::Operator || val->iValue != ',')
3631 int val = 0;
3633 val = CSSValue100;
3635 val = CSSValue200;
3637 val = CSSValue300;
3639 val = CSSValue400;
3641 val = CSSValue500;
3643 val = CSSValue600;
3645 val = CSSValue700;
3647 val = CSSValue800;
3649 val = CSSValue900;
3651 if (val)
3652 font->weight = primitiveValueCache()->createIdentifierValue(val);
3776 CSSParserValue* val;
3778 while ((val = m_valueList->current())) {
3782 if (val->id == CSSValueNormal || val->id == CSSValueItalic || val->id == CSSValueOblique)
3783 parsedValue = primitiveValueCache()->createIdentifierValue(val->id);
3784 else if (val->id == CSSValueAll && !values) {
3788 parsedValue = primitiveValueCache()->createIdentifierValue(val->id);
3790 } else if (val->unit == CSSParserValue::Operator && val->iValue == ',') {
3823 CSSParserValue* val;
3825 while ((val = m_valueList->current())) {
3829 if (val->id == CSSValueNormal || val->id == CSSValueSmallCaps)
3830 parsedValue = primitiveValueCache()->createIdentifierValue(val->id);
3831 else if (val->id == CSSValueAll && !values) {
3835 parsedValue = primitiveValueCache()->createIdentifierValue(val->id);
3837 } else if (val->unit == CSSParserValue::Operator && val->iValue == ',') {
3870 CSSParserValue* val;
3872 while ((val = m_valueList->current())) {
3876 if (val->unit == CSSPrimitiveValue::CSS_IDENT) {
3877 if (val->id >= CSSValueNormal && val->id <= CSSValue900)
3878 parsedValue = primitiveValueCache()->createIdentifierValue(val->id);
3879 else if (val->id == CSSValueAll && !values) {
3883 parsedValue = primitiveValueCache()->createIdentifierValue(val->id);
3885 } else if (validUnit(val, FInteger | FNonNeg, false)) {
3886 int weight = static_cast<int>(val->fValue);
3890 } else if (val->unit == CSSParserValue::Operator && val->iValue == ',') {
3918 static bool isValidFormatFunction(CSSParserValue* val)
3920 CSSParserValueList* args = val->function->args.get();
3921 return equalIgnoringCase(val->function->name, "format(") && (args->current()->unit == CSSPrimitiveValue::CSS_STRING || args->current()->unit == CSSPrimitiveValue::CSS_IDENT);
3927 CSSParserValue* val;
3932 while ((val = m_valueList->current())) {
3934 if (val->unit == CSSPrimitiveValue::CSS_URI && !expectComma && m_styleSheet) {
3937 parsedValue = CSSFontFaceSrcValue::create(m_styleSheet->completeURL(val->string));
3941 } else if (val->unit == CSSParserValue::Function) {
3943 CSSParserValueList* args = val->function->args.get();
3945 if (equalIgnoringCase(val->function->name, "local(") && !expectComma && (args->current()->unit == CSSPrimitiveValue::CSS_STRING || args->current()->unit == CSSPrimitiveValue::CSS_IDENT)) {
3951 } else if (allowFormat && uriValue && isValidFormatFunction(val)) {
3960 } else if (val->unit == CSSParserValue::Operator && val->iValue == ',' && expectComma) {
4561 RefPtr<CSSPrimitiveValue> val = m_primitiveValueCache->createValue(v->fValue, (CSSPrimitiveValue::UnitTypes)v->unit);
4564 x = val.release();
4571 y = val.release();
4578 blur = val.release();
4582 spread = val.release();
4587 void commitColor(PassRefPtr<CSSPrimitiveValue> val)
4589 color = val;
4637 CSSParserValue* val;
4638 while ((val = m_valueList->current())) {
4640 if (val->unit == CSSParserValue::Operator) {
4641 if (val->iValue != ',' || !context.allowBreak)
4652 } else if (validUnit(val, FLength, true)) {
4658 context.commitLength(val);
4659 } else if (val->id == CSSValueInset) {
4663 context.commitStyle(val);
4667 bool isColor = ((val->id >= CSSValueAqua && val->id <= CSSValueWindowtext) || val->id == CSSValueMenu ||
4668 (val->id >= CSSValueWebkitFocusRingColor && val->id <= CSSValueWebkitText && !m_strict));
4672 parsedColor = primitiveValueCache()->createIdentifierValue(val->id);
4677 parsedColor = parseColor(val);
4706 CSSParserValue* val = m_valueList->current();
4708 switch (val->id) {
4726 val = m_valueList->next();
4728 if (!val)
4731 if (!validUnit(val, FLength | FPercent, m_strict))
4733 offset = primitiveValueCache()->createValue(val->fValue, static_cast<CSSPrimitiveValue::UnitTypes>(val->unit));
4738 val = m_valueList->next();
4739 if (val) {
4775 PassRefPtr<CSSPrimitiveValue> val = m_primitiveValueCache->createValue(v->fValue, (CSSPrimitiveValue::UnitTypes)v->unit);
4777 m_top = val;
4779 m_right = val;
4781 m_bottom = val;
4784 m_left = val;
4791 void commitWidth(CSSParserValue* val)
4794 m_borderTop = val;
4796 m_borderRight = val;
4798 m_borderBottom = val;
4801 m_borderLeft = val;
4894 CSSParserValue* val = m_valueList->current();
4895 if (val->unit == CSSPrimitiveValue::CSS_URI && m_styleSheet) {
4898 context.commitImage(CSSImageValue::create(m_styleSheet->completeURL(val->string)));
4899 } else if (isGeneratedImageValue(val)) {
4908 while ((val = m_valueList->next())) {
4909 if (context.allowNumber() && validUnit(val, FInteger | FNonNeg | FPercent, true)) {
4910 context.commitNumber(val);
4911 } else if (propId == CSSPropertyWebkitBorderImage && context.allowSlash() && val->unit == CSSParserValue::Operator && val->iValue == '/') {
4914 (val->id == CSSValueThin || val->id == CSSValueMedium || val->id == CSSValueThick || validUnit(val, FLength, m_strict))) {
4915 context.commitWidth(val);
4917 (val->id == CSSValueStretch || val->id == CSSValueRound || val->id == CSSValueRepeat)) {
4918 context.commitRule(val->id);
5014 enum { ID, VAL } state = ID;
5020 CSSParserValue* val = m_valueList->current();
5023 if (val && val->unit == CSSPrimitiveValue::CSS_IDENT) {
5024 counterName = primitiveValueCache()->createValue(val->string, CSSPrimitiveValue::CSS_STRING);
5025 state = VAL;
5030 case VAL: {
5032 if (val && val->unit == CSSPrimitiveValue::CSS_NUMBER) {
5033 i = clampToInteger(val->fValue);
5522 bool CSSParser::isGeneratedImageValue(CSSParserValue* val) const
5524 if (val->unit != CSSParserValue::Function)
5527 return equalIgnoringCase(val->function->name, "-webkit-gradient(")
5528 || equalIgnoringCase(val->function->name, "-webkit-linear-gradient(")
5529 || equalIgnoringCase(val->function->name, "-webkit-repeating-linear-gradient(")
5530 || equalIgnoringCase(val->function->name, "-webkit-radial-gradient(")
5531 || equalIgnoringCase(val->function->name, "-webkit-repeating-radial-gradient(")
5532 || equalIgnoringCase(val->function->name, "-webkit-canvas(");
5537 CSSParserValue* val = m_valueList->current();
5539 if (val->unit != CSSParserValue::Function)
5542 if (equalIgnoringCase(val->function->name, "-webkit-gradient("))
5545 if (equalIgnoringCase(val->function->name, "-webkit-linear-gradient("))
5548 if (equalIgnoringCase(val->function->name, "-webkit-repeating-linear-gradient("))
5551 if (equalIgnoringCase(val->function->name, "-webkit-radial-gradient("))
5554 if (equalIgnoringCase(val->function->name, "-webkit-repeating-radial-gradient("))
5557 if (equalIgnoringCase(val->function->name, "-webkit-canvas("))