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 26 matching lines...) Expand all Loading... |
37 class CSSFunctionValue; | 37 class CSSFunctionValue; |
38 class CSSGradientValue; | 38 class CSSGradientValue; |
39 class CSSGridLineNamesValue; | 39 class CSSGridLineNamesValue; |
40 class CSSLineBoxContainValue; | 40 class CSSLineBoxContainValue; |
41 struct CSSParserString; | 41 struct CSSParserString; |
42 struct CSSParserValue; | 42 struct CSSParserValue; |
43 class CSSParserValueList; | 43 class CSSParserValueList; |
44 class CSSPrimitiveValue; | 44 class CSSPrimitiveValue; |
45 class CSSProperty; | 45 class CSSProperty; |
46 class CSSQuadValue; | 46 class CSSQuadValue; |
| 47 class CSSStringValue; |
47 class CSSValue; | 48 class CSSValue; |
48 class CSSValueList; | 49 class CSSValueList; |
49 class StylePropertyShorthand; | 50 class StylePropertyShorthand; |
50 | 51 |
51 // Inputs: PropertyID, isImportant bool, CSSParserValueList. | 52 // Inputs: PropertyID, isImportant bool, CSSParserValueList. |
52 // Outputs: Vector of CSSProperties | 53 // Outputs: Vector of CSSProperties |
53 | 54 |
54 class CSSPropertyParser { | 55 class CSSPropertyParser { |
55 STACK_ALLOCATED(); | 56 STACK_ALLOCATED(); |
56 public: | 57 public: |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationProperty(CSSPropertyID, bool
useLegacyParsing); | 144 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationProperty(CSSPropertyID, bool
useLegacyParsing); |
144 PassRefPtrWillBeRawPtr<CSSValueList> parseAnimationPropertyList(CSSPropertyI
D, bool useLegacyParsing); | 145 PassRefPtrWillBeRawPtr<CSSValueList> parseAnimationPropertyList(CSSPropertyI
D, bool useLegacyParsing); |
145 bool parseAnimationShorthand(bool useLegacyParsing, bool important); | 146 bool parseAnimationShorthand(bool useLegacyParsing, bool important); |
146 bool parseTransitionShorthand(bool important); | 147 bool parseTransitionShorthand(bool important); |
147 | 148 |
148 PassRefPtrWillBeRawPtr<CSSValue> parseColumnWidth(); | 149 PassRefPtrWillBeRawPtr<CSSValue> parseColumnWidth(); |
149 PassRefPtrWillBeRawPtr<CSSValue> parseColumnCount(); | 150 PassRefPtrWillBeRawPtr<CSSValue> parseColumnCount(); |
150 bool parseColumnsShorthand(bool important); | 151 bool parseColumnsShorthand(bool important); |
151 | 152 |
152 PassRefPtrWillBeRawPtr<CSSValue> parseGridPosition(); | 153 PassRefPtrWillBeRawPtr<CSSValue> parseGridPosition(); |
153 bool parseIntegerOrCustomIdentFromGridPosition(RefPtrWillBeRawPtr<CSSPrimiti
veValue>& numericValue, RefPtrWillBeRawPtr<CSSPrimitiveValue>& gridLineName); | 154 bool parseIntegerOrCustomIdentFromGridPosition(RefPtrWillBeRawPtr<CSSPrimiti
veValue>& numericValue, RefPtrWillBeRawPtr<CSSStringValue>& gridLineName); |
154 bool parseGridItemPositionShorthand(CSSPropertyID, bool important); | 155 bool parseGridItemPositionShorthand(CSSPropertyID, bool important); |
155 bool parseGridTemplateRowsAndAreas(PassRefPtrWillBeRawPtr<CSSValue>, bool im
portant); | 156 bool parseGridTemplateRowsAndAreas(PassRefPtrWillBeRawPtr<CSSValue>, bool im
portant); |
156 bool parseGridTemplateShorthand(bool important); | 157 bool parseGridTemplateShorthand(bool important); |
157 bool parseGridShorthand(bool important); | 158 bool parseGridShorthand(bool important); |
158 bool parseGridAreaShorthand(bool important); | 159 bool parseGridAreaShorthand(bool important); |
159 bool parseSingleGridAreaLonghand(RefPtrWillBeRawPtr<CSSValue>&); | 160 bool parseSingleGridAreaLonghand(RefPtrWillBeRawPtr<CSSValue>&); |
160 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackList(); | 161 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackList(); |
161 bool parseGridTrackRepeatFunction(CSSValueList&); | 162 bool parseGridTrackRepeatFunction(CSSValueList&); |
162 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackSize(CSSParserValueList& inpu
tList); | 163 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackSize(CSSParserValueList& inpu
tList); |
163 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*); | 164 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*); |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 bool parseCalculation(CSSParserValue*, ValueRange); | 264 bool parseCalculation(CSSParserValue*, ValueRange); |
264 | 265 |
265 bool parseFontFeatureTag(CSSValueList*); | 266 bool parseFontFeatureTag(CSSValueList*); |
266 PassRefPtrWillBeRawPtr<CSSValue> parseFontFeatureSettings(); | 267 PassRefPtrWillBeRawPtr<CSSValue> parseFontFeatureSettings(); |
267 | 268 |
268 bool parseFontVariantLigatures(bool important); | 269 bool parseFontVariantLigatures(bool important); |
269 | 270 |
270 bool parseGeneratedImage(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&)
; | 271 bool parseGeneratedImage(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&)
; |
271 | 272 |
272 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSPar
serValue*); | 273 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSPar
serValue*); |
273 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveStringValue(CSSPars
erValue*); | 274 PassRefPtrWillBeRawPtr<CSSStringValue> createPrimitiveStringValue(CSSParserV
alue*); |
274 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveCustomIdentValue(CS
SParserValue*); | 275 PassRefPtrWillBeRawPtr<CSSStringValue> createPrimitiveCustomIdentValue(CSSPa
rserValue*); |
275 | 276 |
276 PassRefPtrWillBeRawPtr<CSSValue> createCSSImageValueWithReferrer(const Strin
g& rawValue, const KURL&); | 277 PassRefPtrWillBeRawPtr<CSSValue> createCSSImageValueWithReferrer(const Strin
g& rawValue, const KURL&); |
277 | 278 |
278 PassRefPtrWillBeRawPtr<CSSBasicShape> parseInsetRoundedCorners(PassRefPtrWil
lBeRawPtr<CSSBasicShapeInset>, CSSParserValueList*); | 279 PassRefPtrWillBeRawPtr<CSSBasicShape> parseInsetRoundedCorners(PassRefPtrWil
lBeRawPtr<CSSBasicShapeInset>, CSSParserValueList*); |
279 | 280 |
280 enum SizeParameterType { | 281 enum SizeParameterType { |
281 None, | 282 None, |
282 Auto, | 283 Auto, |
283 Length, | 284 Length, |
284 PageSize, | 285 PageSize, |
285 Orientation, | 286 Orientation, |
286 }; | 287 }; |
287 | 288 |
288 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parsePage(); | 289 PassRefPtrWillBeRawPtr<CSSValue> parsePage(); |
289 PassRefPtrWillBeRawPtr<CSSValueList> parseSize(); | 290 PassRefPtrWillBeRawPtr<CSSValueList> parseSize(); |
290 SizeParameterType parseSizeParameter(CSSValueList* parsedValues, CSSParserVa
lue*, SizeParameterType prevParamType); | 291 SizeParameterType parseSizeParameter(CSSValueList* parsedValues, CSSParserVa
lue*, SizeParameterType prevParamType); |
291 | 292 |
292 bool parseFontFaceSrcURI(CSSValueList*); | 293 bool parseFontFaceSrcURI(CSSValueList*); |
293 bool parseFontFaceSrcLocal(CSSValueList*); | 294 bool parseFontFaceSrcLocal(CSSValueList*); |
294 | 295 |
295 class ImplicitScope { | 296 class ImplicitScope { |
296 STACK_ALLOCATED(); | 297 STACK_ALLOCATED(); |
297 WTF_MAKE_NONCOPYABLE(ImplicitScope); | 298 WTF_MAKE_NONCOPYABLE(ImplicitScope); |
298 public: | 299 public: |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 bool m_implicitShorthand; | 379 bool m_implicitShorthand; |
379 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; | 380 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; |
380 }; | 381 }; |
381 | 382 |
382 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); | 383 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); |
383 CSSValueID cssValueKeywordID(const CSSParserString&); | 384 CSSValueID cssValueKeywordID(const CSSParserString&); |
384 | 385 |
385 } // namespace blink | 386 } // namespace blink |
386 | 387 |
387 #endif // CSSPropertyParser_h | 388 #endif // CSSPropertyParser_h |
OLD | NEW |