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 25 matching lines...) Expand all Loading... |
36 class CSSBasicShapeInset; | 36 class CSSBasicShapeInset; |
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 CSSValue; | 47 class CSSValue; |
47 class CSSValueList; | 48 class CSSValueList; |
48 class StylePropertyShorthand; | 49 class StylePropertyShorthand; |
49 | 50 |
50 // Inputs: PropertyID, isImportant bool, CSSParserValueList. | 51 // Inputs: PropertyID, isImportant bool, CSSParserValueList. |
51 // Outputs: Vector of CSSProperties | 52 // Outputs: Vector of CSSProperties |
52 | 53 |
53 class CSSPropertyParser { | 54 class CSSPropertyParser { |
54 STACK_ALLOCATED(); | 55 STACK_ALLOCATED(); |
55 public: | 56 public: |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 bool parseSingleGridAreaLonghand(RefPtrWillBeRawPtr<CSSValue>&); | 159 bool parseSingleGridAreaLonghand(RefPtrWillBeRawPtr<CSSValue>&); |
159 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackList(); | 160 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackList(); |
160 bool parseGridTrackRepeatFunction(CSSValueList&); | 161 bool parseGridTrackRepeatFunction(CSSValueList&); |
161 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackSize(CSSParserValueList& inpu
tList); | 162 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackSize(CSSParserValueList& inpu
tList); |
162 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*); | 163 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*); |
163 bool parseGridTemplateAreasRow(NamedGridAreaMap&, const size_t, size_t&); | 164 bool parseGridTemplateAreasRow(NamedGridAreaMap&, const size_t, size_t&); |
164 PassRefPtrWillBeRawPtr<CSSValue> parseGridTemplateAreas(); | 165 PassRefPtrWillBeRawPtr<CSSValue> parseGridTemplateAreas(); |
165 bool parseGridLineNames(CSSParserValueList&, CSSValueList&, CSSGridLineNames
Value* = nullptr); | 166 bool parseGridLineNames(CSSParserValueList&, CSSValueList&, CSSGridLineNames
Value* = nullptr); |
166 PassRefPtrWillBeRawPtr<CSSValue> parseGridAutoFlow(CSSParserValueList&); | 167 PassRefPtrWillBeRawPtr<CSSValue> parseGridAutoFlow(CSSParserValueList&); |
167 | 168 |
168 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseClipShape(); | 169 PassRefPtrWillBeRawPtr<CSSQuadValue> parseClipShape(); |
169 | 170 |
170 bool parseLegacyPosition(CSSPropertyID, bool important); | 171 bool parseLegacyPosition(CSSPropertyID, bool important); |
171 bool parseItemPositionOverflowPosition(CSSPropertyID, bool important); | 172 bool parseItemPositionOverflowPosition(CSSPropertyID, bool important); |
172 PassRefPtrWillBeRawPtr<CSSValue> parseContentDistributionOverflowPosition(); | 173 PassRefPtrWillBeRawPtr<CSSValue> parseContentDistributionOverflowPosition(); |
173 | 174 |
174 PassRefPtrWillBeRawPtr<CSSValue> parseShapeProperty(CSSPropertyID propId); | 175 PassRefPtrWillBeRawPtr<CSSValue> parseShapeProperty(CSSPropertyID propId); |
175 PassRefPtrWillBeRawPtr<CSSValue> parseBasicShapeAndOrBox(); | 176 PassRefPtrWillBeRawPtr<CSSValue> parseBasicShapeAndOrBox(); |
176 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseBasicShape(); | 177 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseBasicShape(); |
177 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseShapeRadius(CSSParserValue*); | 178 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseShapeRadius(CSSParserValue*); |
178 | 179 |
(...skipping 27 matching lines...) Expand all Loading... |
206 PassRefPtrWillBeRawPtr<CSSValue> parseSVGStrokeDasharray(); | 207 PassRefPtrWillBeRawPtr<CSSValue> parseSVGStrokeDasharray(); |
207 | 208 |
208 PassRefPtrWillBeRawPtr<CSSValue> parsePaintOrder() const; | 209 PassRefPtrWillBeRawPtr<CSSValue> parsePaintOrder() const; |
209 | 210 |
210 // CSS3 Parsing Routines (for properties specific to CSS3) | 211 // CSS3 Parsing Routines (for properties specific to CSS3) |
211 PassRefPtrWillBeRawPtr<CSSValueList> parseShadow(CSSParserValueList*, CSSPro
pertyID); | 212 PassRefPtrWillBeRawPtr<CSSValueList> parseShadow(CSSParserValueList*, CSSPro
pertyID); |
212 bool parseBorderImageShorthand(CSSPropertyID, bool important); | 213 bool parseBorderImageShorthand(CSSPropertyID, bool important); |
213 PassRefPtrWillBeRawPtr<CSSValue> parseBorderImage(CSSPropertyID); | 214 PassRefPtrWillBeRawPtr<CSSValue> parseBorderImage(CSSPropertyID); |
214 bool parseBorderImageRepeat(RefPtrWillBeRawPtr<CSSValue>&); | 215 bool parseBorderImageRepeat(RefPtrWillBeRawPtr<CSSValue>&); |
215 bool parseBorderImageSlice(CSSPropertyID, RefPtrWillBeRawPtr<CSSBorderImageS
liceValue>&); | 216 bool parseBorderImageSlice(CSSPropertyID, RefPtrWillBeRawPtr<CSSBorderImageS
liceValue>&); |
216 bool parseBorderImageWidth(RefPtrWillBeRawPtr<CSSPrimitiveValue>&); | 217 bool parseBorderImageWidth(RefPtrWillBeRawPtr<CSSQuadValue>&); |
217 bool parseBorderImageOutset(RefPtrWillBeRawPtr<CSSPrimitiveValue>&); | 218 bool parseBorderImageOutset(RefPtrWillBeRawPtr<CSSQuadValue>&); |
218 bool parseBorderRadius(CSSPropertyID, bool important); | 219 bool parseBorderRadius(CSSPropertyID, bool important); |
219 | 220 |
220 PassRefPtrWillBeRawPtr<CSSValue> parseReflect(); | 221 PassRefPtrWillBeRawPtr<CSSValue> parseReflect(); |
221 | 222 |
222 bool parseFlex(CSSParserValueList* args, bool important); | 223 bool parseFlex(CSSParserValueList* args, bool important); |
223 | 224 |
224 PassRefPtrWillBeRawPtr<CSSValue> parsePosition(CSSParserValueList*); | 225 PassRefPtrWillBeRawPtr<CSSValue> parsePosition(CSSParserValueList*); |
225 PassRefPtrWillBeRawPtr<CSSValueList> parsePositionList(CSSParserValueList*); | 226 PassRefPtrWillBeRawPtr<CSSValueList> parsePositionList(CSSParserValueList*); |
226 | 227 |
227 // Image generators | 228 // Image generators |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 | 341 |
341 bool validWidthOrHeight(CSSParserValue*, Units); | 342 bool validWidthOrHeight(CSSParserValue*, Units); |
342 | 343 |
343 bool validCalculationUnit(CSSParserValue*, Units, ReleaseParsedCalcValueCond
ition releaseCalc = DoNotReleaseParsedCalcValue); | 344 bool validCalculationUnit(CSSParserValue*, Units, ReleaseParsedCalcValueCond
ition releaseCalc = DoNotReleaseParsedCalcValue); |
344 | 345 |
345 bool shouldAcceptUnitLessValues(CSSParserValue*, Units, CSSParserMode); | 346 bool shouldAcceptUnitLessValues(CSSParserValue*, Units, CSSParserMode); |
346 | 347 |
347 inline bool validUnit(CSSParserValue* value, Units unitflags, ReleaseParsedC
alcValueCondition releaseCalc = DoNotReleaseParsedCalcValue) { return validUnit(
value, unitflags, m_context.mode(), releaseCalc); } | 348 inline bool validUnit(CSSParserValue* value, Units unitflags, ReleaseParsedC
alcValueCondition releaseCalc = DoNotReleaseParsedCalcValue) { return validUnit(
value, unitflags, m_context.mode(), releaseCalc); } |
348 bool validUnit(CSSParserValue*, Units, CSSParserMode, ReleaseParsedCalcValue
Condition releaseCalc = DoNotReleaseParsedCalcValue); | 349 bool validUnit(CSSParserValue*, Units, CSSParserMode, ReleaseParsedCalcValue
Condition releaseCalc = DoNotReleaseParsedCalcValue); |
349 | 350 |
350 bool parseBorderImageQuad(Units, RefPtrWillBeRawPtr<CSSPrimitiveValue>&); | 351 bool parseBorderImageQuad(Units, RefPtrWillBeRawPtr<CSSQuadValue>&); |
351 int colorIntFromValue(CSSParserValue*); | 352 int colorIntFromValue(CSSParserValue*); |
352 | 353 |
353 bool buildBorderImageParseContext(CSSPropertyID, BorderImageParseContext&); | 354 bool buildBorderImageParseContext(CSSPropertyID, BorderImageParseContext&); |
354 | 355 |
355 bool parseDeprecatedGradientColorStop(CSSParserValue*, CSSGradientColorStop&
); | 356 bool parseDeprecatedGradientColorStop(CSSParserValue*, CSSGradientColorStop&
); |
356 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseDeprecatedGradientStopColor(c
onst CSSParserValue*); | 357 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseDeprecatedGradientStopColor(c
onst CSSParserValue*); |
357 | 358 |
358 void commitBorderImageProperty(CSSPropertyID, PassRefPtrWillBeRawPtr<CSSValu
e>, bool important); | 359 void commitBorderImageProperty(CSSPropertyID, PassRefPtrWillBeRawPtr<CSSValu
e>, bool important); |
359 | 360 |
360 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapPoints(); | 361 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapPoints(); |
(...skipping 16 matching lines...) Expand all Loading... |
377 bool m_implicitShorthand; | 378 bool m_implicitShorthand; |
378 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; | 379 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; |
379 }; | 380 }; |
380 | 381 |
381 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); | 382 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); |
382 CSSValueID cssValueKeywordID(const CSSParserString&); | 383 CSSValueID cssValueKeywordID(const CSSParserString&); |
383 | 384 |
384 } // namespace blink | 385 } // namespace blink |
385 | 386 |
386 #endif // CSSPropertyParser_h | 387 #endif // CSSPropertyParser_h |
OLD | NEW |