| 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 "core/CSSPropertyNames.h" | 27 #include "core/CSSPropertyNames.h" |
| 28 #include "core/CSSValueKeywords.h" | 28 #include "core/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" | |
| 33 #include "core/css/CSSProperty.h" | 32 #include "core/css/CSSProperty.h" |
| 34 #include "core/css/CSSPropertySourceData.h" | 33 #include "core/css/CSSPropertySourceData.h" |
| 35 #include "core/css/CSSSelector.h" | 34 #include "core/css/CSSSelector.h" |
| 36 #include "core/css/parser/CSSParserMode.h" | 35 #include "core/css/parser/CSSParserMode.h" |
| 37 #include "core/css/parser/CSSParserValues.h" | 36 #include "core/css/parser/CSSParserValues.h" |
| 38 #include "platform/graphics/Color.h" | 37 #include "platform/graphics/Color.h" |
| 39 #include "wtf/OwnPtr.h" | 38 #include "wtf/OwnPtr.h" |
| 40 #include "wtf/Vector.h" | 39 #include "wtf/Vector.h" |
| 41 | 40 |
| 42 namespace blink { | 41 namespace blink { |
| 43 | 42 |
| 44 class CSSBorderImageSliceValue; | 43 class CSSBorderImageSliceValue; |
| 45 class CSSPrimitiveValue; | 44 class CSSPrimitiveValue; |
| 46 class CSSValue; | 45 class CSSValue; |
| 47 class CSSValueList; | 46 class CSSValueList; |
| 48 class CSSBasicShape; | 47 class CSSBasicShape; |
| 49 class CSSBasicShapeInset; | 48 class CSSBasicShapeInset; |
| 50 class CSSGridLineNamesValue; | |
| 51 class ImmutableStylePropertySet; | 49 class ImmutableStylePropertySet; |
| 52 class StylePropertyShorthand; | 50 class StylePropertyShorthand; |
| 53 class UseCounter; | 51 class UseCounter; |
| 54 | 52 |
| 55 // Inputs: PropertyID, isImportant bool, CSSParserValueList. | 53 // Inputs: PropertyID, isImportant bool, CSSParserValueList. |
| 56 // Outputs: Vector of CSSProperties | 54 // Outputs: Vector of CSSProperties |
| 57 | 55 |
| 58 class CSSPropertyParser { | 56 class CSSPropertyParser { |
| 59 STACK_ALLOCATED(); | 57 STACK_ALLOCATED(); |
| 60 public: | 58 public: |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 PassRefPtr<CSSValue> parseAnimationProperty(); | 128 PassRefPtr<CSSValue> parseAnimationProperty(); |
| 131 PassRefPtr<CSSValue> parseAnimationTimingFunction(); | 129 PassRefPtr<CSSValue> parseAnimationTimingFunction(); |
| 132 | 130 |
| 133 bool parseWebkitTransformOriginShorthand(bool important); | 131 bool parseWebkitTransformOriginShorthand(bool important); |
| 134 bool parseCubicBezierTimingFunctionValue(CSSParserValueList*& args, double&
result); | 132 bool parseCubicBezierTimingFunctionValue(CSSParserValueList*& args, double&
result); |
| 135 PassRefPtr<CSSValue> parseAnimationProperty(CSSPropertyID); | 133 PassRefPtr<CSSValue> parseAnimationProperty(CSSPropertyID); |
| 136 PassRefPtr<CSSValueList> parseAnimationPropertyList(CSSPropertyID); | 134 PassRefPtr<CSSValueList> parseAnimationPropertyList(CSSPropertyID); |
| 137 bool parseTransitionShorthand(CSSPropertyID, bool important); | 135 bool parseTransitionShorthand(CSSPropertyID, bool important); |
| 138 bool parseAnimationShorthand(CSSPropertyID, bool important); | 136 bool parseAnimationShorthand(CSSPropertyID, bool important); |
| 139 | 137 |
| 140 PassRefPtr<CSSValue> parseGridPosition(); | |
| 141 bool parseIntegerOrCustomIdentFromGridPosition(RefPtr<CSSPrimitiveValue>& nu
mericValue, RefPtr<CSSPrimitiveValue>& gridLineName); | |
| 142 bool parseGridItemPositionShorthand(CSSPropertyID, bool important); | |
| 143 bool parseGridTemplateRowsAndAreas(PassRefPtr<CSSValue>, bool important); | |
| 144 bool parseGridTemplateShorthand(bool important); | |
| 145 bool parseGridShorthand(bool important); | |
| 146 bool parseGridAreaShorthand(bool important); | |
| 147 bool parseSingleGridAreaLonghand(RefPtr<CSSValue>&); | |
| 148 PassRefPtr<CSSValue> parseGridTrackList(); | |
| 149 bool parseGridTrackRepeatFunction(CSSValueList&); | |
| 150 PassRefPtr<CSSValue> parseGridTrackSize(CSSParserValueList& inputList); | |
| 151 PassRefPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*); | |
| 152 bool parseGridTemplateAreasRow(NamedGridAreaMap&, const size_t, size_t&); | |
| 153 PassRefPtr<CSSValue> parseGridTemplateAreas(); | |
| 154 void parseGridLineNames(CSSParserValueList&, CSSValueList&, CSSGridLineNames
Value* = 0); | |
| 155 PassRefPtr<CSSValue> parseGridAutoFlow(CSSParserValueList&); | |
| 156 | |
| 157 bool parseClipShape(CSSPropertyID, bool important); | 138 bool parseClipShape(CSSPropertyID, bool important); |
| 158 | 139 |
| 159 bool parseItemPositionOverflowPosition(CSSPropertyID, bool important); | 140 bool parseItemPositionOverflowPosition(CSSPropertyID, bool important); |
| 160 | 141 |
| 161 PassRefPtr<CSSValue> parseShapeProperty(CSSPropertyID propId); | 142 PassRefPtr<CSSValue> parseShapeProperty(CSSPropertyID propId); |
| 162 PassRefPtr<CSSValue> parseBasicShapeAndOrBox(); | 143 PassRefPtr<CSSValue> parseBasicShapeAndOrBox(); |
| 163 PassRefPtr<CSSPrimitiveValue> parseBasicShape(); | 144 PassRefPtr<CSSPrimitiveValue> parseBasicShape(); |
| 164 PassRefPtr<CSSPrimitiveValue> parseShapeRadius(CSSParserValue*); | 145 PassRefPtr<CSSPrimitiveValue> parseShapeRadius(CSSParserValue*); |
| 165 | 146 |
| 166 PassRefPtr<CSSBasicShape> parseBasicShapeCircle(CSSParserValueList* args); | 147 PassRefPtr<CSSBasicShape> parseBasicShapeCircle(CSSParserValueList* args); |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 CSSPropertyID cssPropertyID(const CSSParserString&); | 346 CSSPropertyID cssPropertyID(const CSSParserString&); |
| 366 CSSPropertyID cssPropertyID(const String&); | 347 CSSPropertyID cssPropertyID(const String&); |
| 367 CSSValueID cssValueKeywordID(const CSSParserString&); | 348 CSSValueID cssValueKeywordID(const CSSParserString&); |
| 368 | 349 |
| 369 bool isKeywordPropertyID(CSSPropertyID); | 350 bool isKeywordPropertyID(CSSPropertyID); |
| 370 bool isValidKeywordPropertyAndValue(CSSPropertyID, CSSValueID, const CSSParserCo
ntext&); | 351 bool isValidKeywordPropertyAndValue(CSSPropertyID, CSSValueID, const CSSParserCo
ntext&); |
| 371 | 352 |
| 372 } // namespace blink | 353 } // namespace blink |
| 373 | 354 |
| 374 #endif // CSSPropertyParser_h | 355 #endif // CSSPropertyParser_h |
| OLD | NEW |