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 11 matching lines...) Expand all Loading... |
22 | 22 |
23 #ifndef CSSPropertyParser_h | 23 #ifndef CSSPropertyParser_h |
24 #define CSSPropertyParser_h | 24 #define CSSPropertyParser_h |
25 | 25 |
26 // FIXME: Way too many. | 26 // FIXME: Way too many. |
27 #include "CSSPropertyNames.h" | 27 #include "CSSPropertyNames.h" |
28 #include "CSSValueKeywords.h" | 28 #include "CSSValueKeywords.h" |
29 #include "core/css/CSSCalculationValue.h" | 29 #include "core/css/CSSCalculationValue.h" |
30 #include "core/css/CSSFilterValue.h" | 30 #include "core/css/CSSFilterValue.h" |
31 #include "core/css/CSSGradientValue.h" | 31 #include "core/css/CSSGradientValue.h" |
| 32 #include "core/css/CSSGridTemplateAreasValue.h" |
32 #include "core/css/CSSParserMode.h" | 33 #include "core/css/CSSParserMode.h" |
33 #include "core/css/CSSParserValues.h" | 34 #include "core/css/CSSParserValues.h" |
34 #include "core/css/CSSProperty.h" | 35 #include "core/css/CSSProperty.h" |
35 #include "core/css/CSSPropertySourceData.h" | 36 #include "core/css/CSSPropertySourceData.h" |
36 #include "core/css/CSSSelector.h" | 37 #include "core/css/CSSSelector.h" |
37 #include "platform/graphics/Color.h" | 38 #include "platform/graphics/Color.h" |
38 #include "wtf/OwnPtr.h" | 39 #include "wtf/OwnPtr.h" |
39 #include "wtf/Vector.h" | 40 #include "wtf/Vector.h" |
40 | 41 |
41 namespace WebCore { | 42 namespace WebCore { |
42 | 43 |
43 // FIXME: Many of these may not be used. | 44 // FIXME: Many of these may not be used. |
44 class AnimationParseContext; | 45 class AnimationParseContext; |
45 class CSSArrayFunctionValue; | 46 class CSSArrayFunctionValue; |
46 class CSSBorderImageSliceValue; | 47 class CSSBorderImageSliceValue; |
47 class CSSPrimitiveValue; | 48 class CSSPrimitiveValue; |
48 class CSSSelectorList; | 49 class CSSSelectorList; |
49 class CSSValue; | 50 class CSSValue; |
50 class CSSValueList; | 51 class CSSValueList; |
51 class CSSBasicShape; | 52 class CSSBasicShape; |
52 class CSSBasicShapeInset; | 53 class CSSBasicShapeInset; |
| 54 class CSSGridLineNamesValue; |
53 class Document; | 55 class Document; |
54 class Element; | 56 class Element; |
55 class ImmutableStylePropertySet; | 57 class ImmutableStylePropertySet; |
56 class StyleKeyframe; | 58 class StyleKeyframe; |
57 class StylePropertyShorthand; | 59 class StylePropertyShorthand; |
58 class StyleKeyframe; | 60 class StyleKeyframe; |
59 class UseCounter; | 61 class UseCounter; |
60 | 62 |
61 // Inputs: PropertyID, isImportant bool, CSSParserValueList. | 63 // Inputs: PropertyID, isImportant bool, CSSParserValueList. |
62 // Outputs: Vector of CSSProperties | 64 // Outputs: Vector of CSSProperties |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 bool parseTransitionShorthand(CSSPropertyID, bool important); | 144 bool parseTransitionShorthand(CSSPropertyID, bool important); |
143 bool parseAnimationShorthand(CSSPropertyID, bool important); | 145 bool parseAnimationShorthand(CSSPropertyID, bool important); |
144 | 146 |
145 PassRefPtrWillBeRawPtr<CSSValue> parseColumnWidth(); | 147 PassRefPtrWillBeRawPtr<CSSValue> parseColumnWidth(); |
146 PassRefPtrWillBeRawPtr<CSSValue> parseColumnCount(); | 148 PassRefPtrWillBeRawPtr<CSSValue> parseColumnCount(); |
147 bool parseColumnsShorthand(bool important); | 149 bool parseColumnsShorthand(bool important); |
148 | 150 |
149 PassRefPtrWillBeRawPtr<CSSValue> parseGridPosition(); | 151 PassRefPtrWillBeRawPtr<CSSValue> parseGridPosition(); |
150 bool parseIntegerOrStringFromGridPosition(RefPtrWillBeRawPtr<CSSPrimitiveVal
ue>& numericValue, RefPtrWillBeRawPtr<CSSPrimitiveValue>& gridLineName); | 152 bool parseIntegerOrStringFromGridPosition(RefPtrWillBeRawPtr<CSSPrimitiveVal
ue>& numericValue, RefPtrWillBeRawPtr<CSSPrimitiveValue>& gridLineName); |
151 bool parseGridItemPositionShorthand(CSSPropertyID, bool important); | 153 bool parseGridItemPositionShorthand(CSSPropertyID, bool important); |
| 154 bool parseGridTemplateRowsAndAreas(PassRefPtrWillBeRawPtr<CSSValue>, bool im
portant); |
| 155 bool parseGridTemplateShorthand(bool important); |
152 bool parseGridAreaShorthand(bool important); | 156 bool parseGridAreaShorthand(bool important); |
153 bool parseSingleGridAreaLonghand(RefPtrWillBeRawPtr<CSSValue>&); | 157 bool parseSingleGridAreaLonghand(RefPtrWillBeRawPtr<CSSValue>&); |
154 bool parseGridTrackList(CSSPropertyID, bool important); | 158 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackList(bool important); |
155 bool parseGridTrackRepeatFunction(CSSValueList&); | 159 bool parseGridTrackRepeatFunction(CSSValueList&); |
156 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackSize(CSSParserValueList& inpu
tList); | 160 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackSize(CSSParserValueList& inpu
tList); |
157 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*); | 161 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*); |
| 162 bool parseGridTemplateAreasRow(NamedGridAreaMap&, const size_t, size_t&); |
158 PassRefPtrWillBeRawPtr<CSSValue> parseGridTemplateAreas(); | 163 PassRefPtrWillBeRawPtr<CSSValue> parseGridTemplateAreas(); |
159 void parseGridLineNames(CSSParserValueList* inputList, CSSValueList&); | 164 void parseGridLineNames(CSSParserValueList* inputList, CSSValueList&, CSSGri
dLineNamesValue* = 0); |
160 | 165 |
161 bool parseClipShape(CSSPropertyID, bool important); | 166 bool parseClipShape(CSSPropertyID, bool important); |
162 | 167 |
163 bool parseItemPositionOverflowPosition(CSSPropertyID, bool important); | 168 bool parseItemPositionOverflowPosition(CSSPropertyID, bool important); |
164 | 169 |
165 PassRefPtrWillBeRawPtr<CSSValue> parseShapeProperty(CSSPropertyID propId); | 170 PassRefPtrWillBeRawPtr<CSSValue> parseShapeProperty(CSSPropertyID propId); |
166 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseBasicShape(); | 171 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseBasicShape(); |
167 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseShapeRadius(CSSParserValue*); | 172 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseShapeRadius(CSSParserValue*); |
168 | 173 |
169 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeRectangle(CSSParserValu
eList* args); | 174 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeRectangle(CSSParserValu
eList* args); |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 | 405 |
401 CSSPropertyID cssPropertyID(const CSSParserString&); | 406 CSSPropertyID cssPropertyID(const CSSParserString&); |
402 CSSPropertyID cssPropertyID(const String&); | 407 CSSPropertyID cssPropertyID(const String&); |
403 CSSValueID cssValueKeywordID(const CSSParserString&); | 408 CSSValueID cssValueKeywordID(const CSSParserString&); |
404 | 409 |
405 bool isValidNthToken(const CSSParserString&); | 410 bool isValidNthToken(const CSSParserString&); |
406 | 411 |
407 } // namespace WebCore | 412 } // namespace WebCore |
408 | 413 |
409 #endif // CSSPropertyParser_h | 414 #endif // CSSPropertyParser_h |
OLD | NEW |