Lines Matching full:val
569 // Change the unit type of the numeric val to match.
1183 CSSParserValue* val;
1185 while ((val = m_valueList->current())) {
1186 if (val->unit == CSSPrimitiveValue::CSS_URI && m_styleSheet) {
1189 parsedValue = CSSPrimitiveValue::create(m_styleSheet->completeURL(val->string), CSSPrimitiveValue::CSS_URI);
1244 RefPtr<CSSPrimitiveValue> val = CSSPrimitiveValue::create(pair.release());
1245 addProperty(propId, val.release(), important);
1382 PassRefPtr<CSSValue> val = parseTransform();
1383 if (val) {
1384 addProperty(propId, val, important);
1422 RefPtr<CSSValue> val = CSSPrimitiveValue::create(value->fValue, (CSSPrimitiveValue::UnitTypes)value->unit);
1423 if (val) {
1424 addProperty(propId, val.release(), important);
1456 RefPtr<CSSValue> val;
1457 if (parseAnimationProperty(propId, val)) {
1458 addProperty(propId, val.release(), important);
1825 CSSParserValue* val = m_valueList->current();
1826 if (val->unit == CSSParserValue::Operator && val->iValue == ',') {
1963 CSSParserValue* val = m_valueList->current();
1964 if (val->unit == CSSParserValue::Operator && val->iValue == ',') {
1979 RefPtr<CSSValue> val;
1980 if (parseAnimationProperty(properties[i], val)) {
1982 addAnimationValue(values[i], val.release());
2021 CSSParserValue* val = m_valueList->current();
2022 if (val->unit == CSSParserValue::Operator && val->iValue == ',') {
2037 RefPtr<CSSValue> val;
2038 if (parseAnimationProperty(properties[i], val)) {
2040 addAnimationValue(values[i], val.release());
2170 while (CSSParserValue* val = m_valueList->current()) {
2172 if (val->unit == CSSPrimitiveValue::CSS_URI && m_styleSheet) {
2176 parsedValue = CSSImageValue::create(m_styleSheet->completeURL(val->string));
2177 } else if (val->unit == CSSParserValue::Function) {
2179 CSSParserValueList* args = val->function->args;
2182 if (equalIgnoringCase(val->function->name, "attr(")) {
2186 } else if (equalIgnoringCase(val->function->name, "counter(")) {
2190 } else if (equalIgnoringCase(val->function->name, "counters(")) {
2194 } else if (equalIgnoringCase(val->function->name, "-webkit-gradient(")) {
2197 } else if (equalIgnoringCase(val->function->name, "-webkit-canvas(")) {
2202 } else if (val->unit == CSSPrimitiveValue::CSS_IDENT) {
2208 } else if (val->unit == CSSPrimitiveValue::CSS_STRING) {
2209 parsedValue = CSSPrimitiveValue::create(val->string, CSSPrimitiveValue::CSS_STRING);
2447 CSSParserValue* val;
2470 while ((val = m_valueList->current())) {
2475 if (val->unit != CSSParserValue::Operator || val->iValue != ',')
2489 if (val->id == CSSValueScroll || val->id == CSSValueFixed || val->id == CSSValueLocal) {
2490 currValue = CSSPrimitiveValue::createIdentifier(val->id);
2505 if (val->id == CSSValueBorder || val->id == CSSValuePadding || val->id == CSSValueContent ||
2506 val->id == CSSValueBorderBox || val->id == CSSValuePaddingBox || val->id == CSSValueContentBox ||
2508 (val->id == CSSValueText || val->id == CSSValueWebkitText))) {
2509 currValue = CSSPrimitiveValue::createIdentifier(val->id);
2514 if (parseBackgroundClip(val, currValue))
2518 if (val->id == CSSValueBorderBox || val->id == CSSValuePaddingBox || val->id == CSSValueContentBox) {
2519 currValue = CSSPrimitiveValue::createIdentifier(val->id);
2546 if ((val->id >= CSSValueClear && val->id <= CSSValuePlusLighter) || val->id == CSSValueHighlight) {
2547 currValue = CSSPrimitiveValue::createIdentifier(val->id);
2743 CSSParserValue* val;
2749 while ((val = m_valueList->current())) {
2752 if (val->unit != CSSParserValue::Operator || val->iValue != ',')
3112 int val = 0;
3114 val = CSSValue100;
3116 val = CSSValue200;
3118 val = CSSValue300;
3120 val = CSSValue400;
3122 val = CSSValue500;
3124 val = CSSValue600;
3126 val = CSSValue700;
3128 val = CSSValue800;
3130 val = CSSValue900;
3132 if (val)
3133 font->weight = CSSPrimitiveValue::createIdentifier(val);
3257 CSSParserValue* val;
3259 while ((val = m_valueList->current())) {
3263 if (val->id == CSSValueNormal || val->id == CSSValueItalic || val->id == CSSValueOblique)
3264 parsedValue = CSSPrimitiveValue::createIdentifier(val->id);
3265 else if (val->id == CSSValueAll && !values) {
3269 parsedValue = CSSPrimitiveValue::createIdentifier(val->id);
3271 } else if (val->unit == CSSParserValue::Operator && val->iValue == ',') {
3304 CSSParserValue* val;
3306 while ((val = m_valueList->current())) {
3310 if (val->id == CSSValueNormal || val->id == CSSValueSmallCaps)
3311 parsedValue = CSSPrimitiveValue::createIdentifier(val->id);
3312 else if (val->id == CSSValueAll && !values) {
3316 parsedValue = CSSPrimitiveValue::createIdentifier(val->id);
3318 } else if (val->unit == CSSParserValue::Operator && val->iValue == ',') {
3351 CSSParserValue* val;
3353 while ((val = m_valueList->current())) {
3357 if (val->unit == CSSPrimitiveValue::CSS_IDENT) {
3358 if (val->id >= CSSValueNormal && val->id <= CSSValue900)
3359 parsedValue = CSSPrimitiveValue::createIdentifier(val->id);
3360 else if (val->id == CSSValueAll && !values) {
3364 parsedValue = CSSPrimitiveValue::createIdentifier(val->id);
3366 } else if (validUnit(val, FInteger | FNonNeg, false)) {
3367 int weight = static_cast<int>(val->fValue);
3371 } else if (val->unit == CSSParserValue::Operator && val->iValue == ',') {
3399 static bool isValidFormatFunction(CSSParserValue* val)
3401 CSSParserValueList* args = val->function->args;
3402 return equalIgnoringCase(val->function->name, "format(") && (args->current()->unit == CSSPrimitiveValue::CSS_STRING || args->current()->unit == CSSPrimitiveValue::CSS_IDENT);
3408 CSSParserValue* val;
3413 while ((val = m_valueList->current())) {
3415 if (val->unit == CSSPrimitiveValue::CSS_URI && !expectComma && m_styleSheet) {
3418 parsedValue = CSSFontFaceSrcValue::create(m_styleSheet->completeURL(val->string));
3422 } else if (val->unit == CSSParserValue::Function) {
3424 CSSParserValueList* args = val->function->args;
3426 if (equalIgnoringCase(val->function->name, "local(") && !expectComma) {
3432 } else if (allowFormat && uriValue && isValidFormatFunction(val)) {
3441 } else if (val->unit == CSSParserValue::Operator && val->iValue == ',' && expectComma) {
3747 RefPtr<CSSPrimitiveValue> val = CSSPrimitiveValue::create(v->fValue, (CSSPrimitiveValue::UnitTypes)v->unit);
3750 x = val.release();
3757 y = val.release();
3764 blur = val.release();
3768 spread = val.release();
3773 void commitColor(PassRefPtr<CSSPrimitiveValue> val)
3775 color = val;
3822 CSSParserValue* val;
3823 while ((val = m_valueList->current())) {
3825 if (val->unit == CSSParserValue::Operator) {
3826 if (val->iValue != ',' || !context.allowBreak)
3837 } else if (validUnit(val, FLength, true)) {
3843 context.commitLength(val);
3844 } else if (val->id == CSSValueInset) {
3848 context.commitStyle(val);
3852 bool isColor = ((val->id >= CSSValueAqua && val->id <= CSSValueWindowtext) || val->id == CSSValueMenu ||
3853 (val->id >= CSSValueWebkitFocusRingColor && val->id <= CSSValueWebkitText && !m_strict));
3857 parsedColor = CSSPrimitiveValue::createIdentifier(val->id);
3862 parsedColor = parseColor(val);
3891 CSSParserValue* val = m_valueList->current();
3893 switch (val->id) {
3911 val = m_valueList->next();
3913 if (!val)
3916 if (!validUnit(val, FLength | FPercent, m_strict))
3918 offset = CSSPrimitiveValue::create(val->fValue, static_cast<CSSPrimitiveValue::UnitTypes>(val->unit));
3923 val = m_valueList->next();
3924 if (val) {
3959 PassRefPtr<CSSPrimitiveValue> val = CSSPrimitiveValue::create(v->fValue, (CSSPrimitiveValue::UnitTypes)v->unit);
3961 m_top = val;
3963 m_right = val;
3965 m_bottom = val;
3968 m_left = val;
3975 void commitWidth(CSSParserValue* val)
3978 m_borderTop = val;
3980 m_borderRight = val;
3982 m_borderBottom = val;
3985 m_borderLeft = val;
4076 CSSParserValue* val = m_valueList->current();
4077 if (val->unit == CSSPrimitiveValue::CSS_URI && m_styleSheet) {
4080 context.commitImage(CSSImageValue::create(m_styleSheet->completeURL(val->string)));
4081 } else if (val->unit == CSSParserValue::Function) {
4083 if ((equalIgnoringCase(val->function->name, "-webkit-gradient(") && parseGradient(value)) ||
4084 (equalIgnoringCase(val->function->name, "-webkit-canvas(") && parseCanvas(value)))
4091 while ((val = m_valueList->next())) {
4092 if (context.allowNumber() && validUnit(val, FInteger | FNonNeg | FPercent, true)) {
4093 context.commitNumber(val);
4094 } else if (propId == CSSPropertyWebkitBorderImage && context.allowSlash() && val->unit == CSSParserValue::Operator && val->iValue == '/') {
4097 (val->id == CSSValueThin || val->id == CSSValueMedium || val->id == CSSValueThick || validUnit(val, FLength, m_strict))) {
4098 context.commitWidth(val);
4100 (val->id == CSSValueStretch || val->id == CSSValueRound || val->id == CSSValueRepeat)) {
4101 context.commitRule(val->id);
4194 enum { ID, VAL } state = ID;
4200 CSSParserValue* val = m_valueList->current();
4203 if (val && val->unit == CSSPrimitiveValue::CSS_IDENT) {
4204 counterName = CSSPrimitiveValue::create(val->string, CSSPrimitiveValue::CSS_STRING);
4205 state = VAL;
4210 case VAL: {
4212 if (val && val->unit == CSSPrimitiveValue::CSS_NUMBER) {
4213 i = (int)val->fValue;
5256 RefPtr<CSSVariableDependentValue> val = CSSVariableDependentValue::create(CSSValueList::createFromParserValueList(m_valueList));
5257 addProperty(propId, val