| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
| 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
| 5 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserve
d. | 5 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserve
d. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 bool parseBorderImageRepeat(RefPtrWillBeRawPtr<CSSValue>&); | 217 bool parseBorderImageRepeat(RefPtrWillBeRawPtr<CSSValue>&); |
| 218 bool parseBorderImageSlice(CSSPropertyID, RefPtrWillBeRawPtr<CSSBorderImageS
liceValue>&); | 218 bool parseBorderImageSlice(CSSPropertyID, RefPtrWillBeRawPtr<CSSBorderImageS
liceValue>&); |
| 219 bool parseBorderImageWidth(RefPtrWillBeRawPtr<CSSPrimitiveValue>&); | 219 bool parseBorderImageWidth(RefPtrWillBeRawPtr<CSSPrimitiveValue>&); |
| 220 bool parseBorderImageOutset(RefPtrWillBeRawPtr<CSSPrimitiveValue>&); | 220 bool parseBorderImageOutset(RefPtrWillBeRawPtr<CSSPrimitiveValue>&); |
| 221 bool parseBorderRadius(CSSPropertyID, bool important); | 221 bool parseBorderRadius(CSSPropertyID, bool important); |
| 222 | 222 |
| 223 PassRefPtrWillBeRawPtr<CSSValue> parseReflect(); | 223 PassRefPtrWillBeRawPtr<CSSValue> parseReflect(); |
| 224 | 224 |
| 225 bool parseFlex(CSSParserValueList* args, bool important); | 225 bool parseFlex(CSSParserValueList* args, bool important); |
| 226 | 226 |
| 227 PassRefPtrWillBeRawPtr<CSSValue> parseObjectPosition(); | 227 PassRefPtrWillBeRawPtr<CSSValue> parsePosition(); |
| 228 PassRefPtrWillBeRawPtr<CSSValueList> parsePositionList(CSSParserValueList*); |
| 228 | 229 |
| 229 // Image generators | 230 // Image generators |
| 230 bool parseCanvas(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&); | 231 bool parseCanvas(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&); |
| 231 | 232 |
| 232 bool parseDeprecatedGradient(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValu
e>&); | 233 bool parseDeprecatedGradient(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValu
e>&); |
| 233 bool parseDeprecatedLinearGradient(CSSParserValueList*, RefPtrWillBeRawPtr<C
SSValue>&, CSSGradientRepeat repeating); | 234 bool parseDeprecatedLinearGradient(CSSParserValueList*, RefPtrWillBeRawPtr<C
SSValue>&, CSSGradientRepeat repeating); |
| 234 bool parseDeprecatedRadialGradient(CSSParserValueList*, RefPtrWillBeRawPtr<C
SSValue>&, CSSGradientRepeat repeating); | 235 bool parseDeprecatedRadialGradient(CSSParserValueList*, RefPtrWillBeRawPtr<C
SSValue>&, CSSGradientRepeat repeating); |
| 235 bool parseLinearGradient(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&,
CSSGradientRepeat repeating); | 236 bool parseLinearGradient(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&,
CSSGradientRepeat repeating); |
| 236 bool parseRadialGradient(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&,
CSSGradientRepeat repeating); | 237 bool parseRadialGradient(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&,
CSSGradientRepeat repeating); |
| 237 bool parseGradientColorStops(CSSParserValueList*, CSSGradientValue*, bool ex
pectComma); | 238 bool parseGradientColorStops(CSSParserValueList*, CSSGradientValue*, bool ex
pectComma); |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 bool parseBorderImageQuad(Units, RefPtrWillBeRawPtr<CSSPrimitiveValue>&); | 355 bool parseBorderImageQuad(Units, RefPtrWillBeRawPtr<CSSPrimitiveValue>&); |
| 355 int colorIntFromValue(CSSParserValue*); | 356 int colorIntFromValue(CSSParserValue*); |
| 356 bool isCalculation(CSSParserValue*); | 357 bool isCalculation(CSSParserValue*); |
| 357 | 358 |
| 358 bool buildBorderImageParseContext(CSSPropertyID, BorderImageParseContext&); | 359 bool buildBorderImageParseContext(CSSPropertyID, BorderImageParseContext&); |
| 359 | 360 |
| 360 bool parseDeprecatedGradientColorStop(CSSParserValue*, CSSGradientColorStop&
); | 361 bool parseDeprecatedGradientColorStop(CSSParserValue*, CSSGradientColorStop&
); |
| 361 | 362 |
| 362 void commitBorderImageProperty(CSSPropertyID, PassRefPtrWillBeRawPtr<CSSValu
e>, bool important); | 363 void commitBorderImageProperty(CSSPropertyID, PassRefPtrWillBeRawPtr<CSSValu
e>, bool important); |
| 363 | 364 |
| 365 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapPoints(); |
| 366 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapDestination(); |
| 367 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapCoordinate(); |
| 368 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapPosition(); |
| 369 |
| 364 private: | 370 private: |
| 365 // Inputs: | 371 // Inputs: |
| 366 CSSParserValueList* m_valueList; | 372 CSSParserValueList* m_valueList; |
| 367 const CSSParserContext& m_context; | 373 const CSSParserContext& m_context; |
| 368 | 374 |
| 369 // Outputs: | 375 // Outputs: |
| 370 WillBeHeapVector<CSSProperty, 256>& m_parsedProperties; | 376 WillBeHeapVector<CSSProperty, 256>& m_parsedProperties; |
| 371 StyleRule::Type m_ruleType; | 377 StyleRule::Type m_ruleType; |
| 372 | 378 |
| 373 // Locals during parsing: | 379 // Locals during parsing: |
| 374 int m_inParseShorthand; | 380 int m_inParseShorthand; |
| 375 CSSPropertyID m_currentShorthand; | 381 CSSPropertyID m_currentShorthand; |
| 376 bool m_implicitShorthand; | 382 bool m_implicitShorthand; |
| 377 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; | 383 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; |
| 378 }; | 384 }; |
| 379 | 385 |
| 380 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); | 386 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); |
| 381 CSSPropertyID cssPropertyID(const String&); | 387 CSSPropertyID cssPropertyID(const String&); |
| 382 CSSValueID cssValueKeywordID(const CSSParserString&); | 388 CSSValueID cssValueKeywordID(const CSSParserString&); |
| 383 | 389 |
| 384 } // namespace blink | 390 } // namespace blink |
| 385 | 391 |
| 386 #endif // CSSPropertyParser_h | 392 #endif // CSSPropertyParser_h |
| OLD | NEW |