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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 static bool parseValue(CSSPropertyID, bool important, | 73 static bool parseValue(CSSPropertyID, bool important, |
74 CSSParserValueList*, const CSSParserContext&, | 74 CSSParserValueList*, const CSSParserContext&, |
75 WillBeHeapVector<CSSProperty, 256>&, StyleRule::Type); | 75 WillBeHeapVector<CSSProperty, 256>&, StyleRule::Type); |
76 | 76 |
77 // FIXME: This should probably move to CSSParserFastPaths | 77 // FIXME: This should probably move to CSSParserFastPaths |
78 template<typename StringType> | 78 template<typename StringType> |
79 static bool fastParseColor(RGBA32&, const StringType&, bool strict); | 79 static bool fastParseColor(RGBA32&, const StringType&, bool strict); |
80 | 80 |
81 static bool isSystemColor(int id); | 81 static bool isSystemColor(int id); |
82 | 82 |
| 83 static bool isVariableReference(CSSParserValue*); |
| 84 |
83 private: | 85 private: |
84 CSSPropertyParser(CSSParserValueList*, const CSSParserContext&, | 86 CSSPropertyParser(CSSParserValueList*, const CSSParserContext&, |
85 WillBeHeapVector<CSSProperty, 256>&, StyleRule::Type); | 87 WillBeHeapVector<CSSProperty, 256>&, StyleRule::Type); |
86 | 88 |
87 bool parseValue(CSSPropertyID, bool important); | 89 bool parseValue(CSSPropertyID, bool important); |
88 | 90 |
89 bool inShorthand() const { return m_inParseShorthand; } | 91 bool inShorthand() const { return m_inParseShorthand; } |
90 bool inQuirksMode() const { return isQuirksModeBehavior(m_context.mode()); } | 92 bool inQuirksMode() const { return isQuirksModeBehavior(m_context.mode()); } |
91 | 93 |
92 bool parseViewportProperty(CSSPropertyID propId, bool important); | 94 bool parseViewportProperty(CSSPropertyID propId, bool important); |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 bool parseFontFeatureTag(CSSValueList*); | 271 bool parseFontFeatureTag(CSSValueList*); |
270 PassRefPtrWillBeRawPtr<CSSValue> parseFontFeatureSettings(); | 272 PassRefPtrWillBeRawPtr<CSSValue> parseFontFeatureSettings(); |
271 | 273 |
272 bool parseFontVariantLigatures(bool important); | 274 bool parseFontVariantLigatures(bool important); |
273 | 275 |
274 bool parseGeneratedImage(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&)
; | 276 bool parseGeneratedImage(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&)
; |
275 | 277 |
276 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSPar
serValue*); | 278 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSPar
serValue*); |
277 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveStringValue(CSSPars
erValue*); | 279 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveStringValue(CSSPars
erValue*); |
278 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveCustomIdentValue(CS
SParserValue*); | 280 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveCustomIdentValue(CS
SParserValue*); |
| 281 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveVariableReferenceVa
lue(CSSParserValue*); |
279 | 282 |
280 PassRefPtrWillBeRawPtr<CSSValue> createCSSImageValueWithReferrer(const Strin
g& rawValue, const KURL&); | 283 PassRefPtrWillBeRawPtr<CSSValue> createCSSImageValueWithReferrer(const Strin
g& rawValue, const KURL&); |
281 | 284 |
282 PassRefPtrWillBeRawPtr<CSSBasicShape> parseInsetRoundedCorners(PassRefPtrWil
lBeRawPtr<CSSBasicShapeInset>, CSSParserValueList*); | 285 PassRefPtrWillBeRawPtr<CSSBasicShape> parseInsetRoundedCorners(PassRefPtrWil
lBeRawPtr<CSSBasicShapeInset>, CSSParserValueList*); |
283 | 286 |
284 enum SizeParameterType { | 287 enum SizeParameterType { |
285 None, | 288 None, |
286 Auto, | 289 Auto, |
287 Length, | 290 Length, |
288 PageSize, | 291 PageSize, |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; | 386 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; |
384 }; | 387 }; |
385 | 388 |
386 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); | 389 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); |
387 CSSPropertyID cssPropertyID(const String&); | 390 CSSPropertyID cssPropertyID(const String&); |
388 CSSValueID cssValueKeywordID(const CSSParserString&); | 391 CSSValueID cssValueKeywordID(const CSSParserString&); |
389 | 392 |
390 } // namespace blink | 393 } // namespace blink |
391 | 394 |
392 #endif // CSSPropertyParser_h | 395 #endif // CSSPropertyParser_h |
OLD | NEW |