Home | History | Annotate | Download | only in css

Lines Matching full:weight

1706         // [ [ 'font-style' || 'font-variant' || 'font-weight' ]? 'font-size' [ / 'line-height' ]?
3083 // [ 'font-style' || 'font-variant' || 'font-weight' ]? 'font-size' [ / 'line-height' ]? 'font-family'
3089 // optional font-style, font-variant and font-weight
3104 if (font->weight)
3106 font->weight = CSSPrimitiveValue::createIdentifier(id);
3110 } else if (!font->weight && validUnit(value, FInteger | FNonNeg, true)) {
3111 int weight = (int)value->fValue;
3113 if (weight == 100)
3115 else if (weight == 200)
3117 else if (weight == 300)
3119 else if (weight == 400)
3121 else if (weight == 500)
3123 else if (weight == 600)
3125 else if (weight == 700)
3127 else if (weight == 800)
3129 else if (weight == 900)
3133 font->weight = CSSPrimitiveValue::createIdentifier(val);
3151 if (!font->weight)
3152 font->weight = CSSPrimitiveValue::createIdentifier(CSSValueNormal);
3367 int weight = static_cast<int>(val->fValue);
3368 if (!(weight % 100) && weight >= 100 && weight <= 900)
3369 parsedValue = CSSPrimitiveValue::createIdentifier(CSSValue100 + weight / 100 - 1);