• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/WebCore-7600.1.25/css/

Lines Matching +defs:color +defs:values

525     RGBA32 color;
526 if (!CSSParser::fastParseColor(color, string, strict && string[0] != '#'))
528 RefPtr<CSSValue> value = cssValuePool().createColorValue(color);
1150 // All properties accept the values of "initial" and "inherit".
1311 // The color will only be changed when string contains a valid CSS color, so callers
1312 // can set it to a default color and ignore the boolean result.
1313 bool CSSParser::parseColor(RGBA32& color, const String& string, bool strict)
1315 // First try creating a color specified by name, rgba(), rgb() or "#" syntax.
1316 if (fastParseColor(color, string, strict))
1321 // In case the fast-path parser didn't understand the color, try the full parser.
1333 color = primitiveValue->getRGBA32Value();
1339 setupParser("@-webkit-decls{color:", string, "} ");
1346 bool CSSParser::parseSystemColor(RGBA32& color, const String& string, Document* document)
1361 color = parsedColor.rgb();
1614 // Qirks mode and svg presentation attributes accept unit less values.
1917 case CSSPropertyOutlineColor: // <color> | invert | inherit
1918 // Outline color has "invert" as additional keyword.
1919 // Also, we want to allow the special focus color even in strict parsing mode.
1925 case CSSPropertyBackgroundColor: // <color> | inherit
1926 case CSSPropertyBorderTopColor: // <color> | inherit
1934 case CSSPropertyColor: // <color> | inherit
2259 // [ <text-decoration-line> || <text-decoration-style> || <text-decoration-color> ] | inherit
2459 // We restrict the smallest value to int min + 2 because we use int min and int min + 1 as special values in a hash set.
2774 // Position must come before color in this array because a plain old "0" is a legal color
2787 // [ 'border-width' || 'border-style' || <color> ] | inherit
2798 // [ 'border-top-width' || 'border-style' || <color> ] | inherit
2801 // [ 'border-right-width' || 'border-style' || <color> ] | inherit
2804 // [ 'border-bottom-width' || 'border-style' || <color> ] | inherit
2807 // [ 'border-left-width' || 'border-style' || <color> ] | inherit
2818 // [ 'outline-color' || 'outline-style' || 'outline-width' ] | inherit
2821 // <color>{1,4} | inherit
3165 RefPtr<CSSValue> values[cMaxFillProperties];
3176 // We hit the end. Fill in all remaining values with the initial value.
3185 addFillValue(values[i], cssValuePool().createImplicitInitialValue());
3223 addFillValue(values[i], val1.release());
3253 addFillValue(values[i], cssValuePool().createImplicitInitialValue());
3264 addProperty(CSSPropertyBackgroundPositionX, values[i].release(), important);
3268 addProperty(CSSPropertyWebkitMaskPositionX, values[i].release(), important);
3272 addProperty(CSSPropertyBackgroundRepeatX, values[i].release(), important);
3276 addProperty(CSSPropertyWebkitMaskRepeatX, values[i].release(), important);
3285 addProperty(properties[i], values[i].release(), important);
3287 // Add in clip values when we hit the corresponding origin property.
3329 RefPtr<CSSValue> values[numProperties];
3335 // We hit the end. Fill in all remaining values with the initial value.
3339 addAnimationValue(values[i], cssValuePool().createImplicitInitialValue());
3353 addAnimationValue(values[i], val.release());
3358 // There are more values to process but 'none' or 'all' were already defined as the animation property, the declaration becomes invalid.
3372 addAnimationValue(values[i], cssValuePool().createImplicitInitialValue());
3374 addProperty(animationProperties.properties()[i], values[i].release(), important);
3390 RefPtr<CSSValue> values[numProperties];
3396 // We hit the end. Fill in all remaining values with the initial value.
3400 addAnimationValue(values[i], cssValuePool().createImplicitInitialValue());
3414 addAnimationValue(values[i], val.release());
3417 // There are more values to process but 'none' or 'all' were already defined as the animation property, the declaration becomes invalid.
3432 addAnimationValue(values[i], cssValuePool().createImplicitInitialValue());
3437 addPropertyWithPrefixingVariant(shorthand.properties()[i], values[i].release(), important);
3492 * If there is only one value, it applies to all sides. If there are two values, the top and
3494 * If there are three values, the top is set to the first value, the left and right are set to the
3495 * second, and the bottom is set to the third. If there are four values, they apply to the top,
3646 RefPtr<CSSValueList> values = CSSValueList::createCommaSeparated();
3653 values->append(parsedValue.release());
3656 if (values->length()) {
3657 addProperty(propId, values.release(), important);
3693 RefPtr<CSSValueList> values = CSSValueList::createCommaSeparated();
3754 values->append(parsedValue.release());
3758 if (values->length()) {
3759 addProperty(propId, values.release(), important);
3924 // In the case of 4 values <position> requires the second value to be a length or a percentage.
3943 // We need to check if the values are not conflicting, e.g. they are not on the same edge. It is
3945 // case of two values top 20px is invalid but in the case of 4 values it becomes valid.
4077 // If we are parsing two values, we can safely call the CSS 2.1 parsing function and return.
4101 // In case we are parsing more than two values, relax the check inside of parseFillPositionComponent. top 20px is
4141 // can assume that any other values belong to the rest of the shorthand). If we're not parsing a shorthand, though, the
4259 RefPtr<CSSValueList> values;
4316 // The first three values here are deprecated and do not apply to the version of the property that has
4399 if (value && !values) {
4400 values = CSSValueList::createCommaSeparated();
4401 values->append(value.release());
4409 if (values)
4410 values->append(currValue.release());
4427 if (values && values->length()) {
4428 retValue1 = values.release();
4575 // There are two values.
4601 // For cubic bezier, 4 values must be specified.
4605 // There are two points specified. The x values must be between 0 and 1 but the y values can exceed this range.
4629 RefPtr<CSSValueList> values;
4708 if (value && !values) {
4709 values = CSSValueList::createCommaSeparated();
4710 values->append(value.release());
4713 if (values)
4714 values->append(currValue.release());
4727 if (values && values->length()) {
4728 result = values.release();
4814 RefPtr<CSSValueList> values = CSSValueList::createSpaceSeparated();
4816 values->append(cssValuePool().createIdentifierValue(CSSValueSpan));
4818 values->append(numericValue.release());
4820 values->append(gridLineName.release());
4821 ASSERT(values->length());
4822 return values.release();
5006 // Other omitted values are set to their initial values.
5112 RefPtr<CSSValueList> values = CSSValueList::createSpaceSeparated();
5116 parseGridLineNames(*m_valueList, *values);
5123 if (!parseGridTrackRepeatFunction(*values))
5129 values->append(value.release());
5136 parseGridLineNames(*m_valueList, *values);
5142 return values.release();
5345 // Commas count as values, so allow (function name is dashboard-region for DASHBOARD_SUPPORT feature):
6094 // "font-stretch", "font-size-adjust", and "font-kerning" be reset to their initial values
6241 RefPtr<CSSValueList> values;
6243 values = CSSValueList::createCommaSeparated();
6252 else if (val->id == CSSValueAll && !values) {
6253 // 'all' is only allowed in @font-face and with no other values. Make a value list to
6255 values = CSSValueList::createCommaSeparated();
6269 if (values)
6270 values->append(parsedValue.release());
6277 if (values && values->length()) {
6279 addProperty(CSSPropertyFontVariant, values.release(), important);
6372 RefPtr<CSSValueList> values(CSSValueList::createCommaSeparated());
6376 if (!parseFontFaceSrcURI(values.get()))
6379 if (!parseFontFaceSrcLocal(values.get()))
6384 if (!values->length())
6387 addProperty(CSSPropertySrc, values.release(), m_important);
6394 RefPtr<CSSValueList> values = CSSValueList::createCommaSeparated();
6477 values->append(CSSUnicodeRangeValue::create(from, to));
6479 if (failed || !values->length())
6481 addProperty(CSSPropertyUnicodeRange, values.release(), m_important);
6570 // Clamp values at 255.
6604 // Clamp values at 255 for percentages over 100%
6615 // Clamp negative values at zero.
6872 // with an equal distribution across all 256 values.
6878 // The CSS3 specification defines the format of a HSL color as
6974 // This class tracks parsing state for shadow values. If it goes out of scope (e.g., due to an early return)
6995 if (x || y || blur || spread || color || style) {
6996 if (!values)
6997 values = CSSValueList::createCommaSeparated();
7000 values->append(CSSShadowValue::create(x.release(), y.release(), blur.release(), spread.release(), style.release(), color.release()));
7009 color = 0;
7050 color = val;
7078 RefPtr<CSSValueList> values;
7084 RefPtr<CSSPrimitiveValue> color;
7106 // -webkit-svg-shadow does not support multiple values.
7128 // The only other type of value that's ok is a color value.
7140 // It's not built-in. Try to parse it as a color.
7144 return 0; // This value is not a color or length and is invalid or
7145 // it is a color, but a color isn't allowed at this point.
7155 if (context.values && context.values->length())
7156 return context.values.release();
7220 // flex only allows a basis of 0 (sans units) if flex-grow and flex-shrink values have already been set.
7518 // We need to clone and repeat values for any omissions.
7532 // Now build a rect value to hold all four of our primitive values.
7563 // FIXME calc() http://webkit.org/b/16662 : calc is parsed but values are not created yet.
7635 // We need to clone and repeat values for any omissions.
7649 // Now build a quad value to hold all four of our primitive values.
7866 !equalIgnoringCase(a->function->name, "color-stop("))
7893 // The "color-stop" function expects 3 arguments.
7894 if (equalIgnoringCase(a->function->name, "color-stop(")) {
7961 // comma between the x and the y values.
8042 // The function name needs to be one of "from", "to", or "color-stop."
8476 // Now look for color stops.
8488 // <color-stop> = <color> [ <percentage> | <length> ]?
9073 // Snag our values.
9151 maximumArgumentCount = 4; // x-offset, y-offset, blur-radius, color -- spread and inset style not allowed.
9178 // Saturate and Contrast allow values over 100%.
9532 // However, values 'left' and 'right' are not implemented yet, so we will parse sintax
9751 // Feature tag values could follow: <integer> | on | off
11756 // invalid key values (plain numbers or unknown identifiers)
11767 // "If a keyframe selector specifies negative percentage values
11768 // or values higher than 100%, then the keyframe will be ignored."
12168 // On iOS we don't want to change values starting with -apple-system to -webkit-system.