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 17 matching lines...) Expand all Loading... |
28 #include "core/css/CSSGridTemplateAreasValue.h" | 28 #include "core/css/CSSGridTemplateAreasValue.h" |
29 #include "core/css/CSSImageValue.h" | 29 #include "core/css/CSSImageValue.h" |
30 #include "core/css/CSSPropertySourceData.h" | 30 #include "core/css/CSSPropertySourceData.h" |
31 #include "core/css/parser/CSSParserTokenRange.h" | 31 #include "core/css/parser/CSSParserTokenRange.h" |
32 #include "platform/Length.h" | 32 #include "platform/Length.h" |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 class BorderImageParseContext; | 36 class BorderImageParseContext; |
37 class CSSBorderImageSliceValue; | 37 class CSSBorderImageSliceValue; |
38 class CSSBasicShapeValue; | |
39 class CSSBasicShapeEllipseValue; | |
40 class CSSBasicShapeCircleValue; | |
41 class CSSBasicShapeInsetValue; | |
42 class CSSBasicShapePolygonValue; | |
43 class CSSCustomIdentValue; | 38 class CSSCustomIdentValue; |
44 class CSSFunctionValue; | 39 class CSSFunctionValue; |
45 class CSSGradientValue; | 40 class CSSGradientValue; |
46 class CSSGridLineNamesValue; | 41 class CSSGridLineNamesValue; |
47 struct CSSParserString; | 42 struct CSSParserString; |
48 struct CSSParserValue; | 43 struct CSSParserValue; |
49 class CSSParserValueList; | 44 class CSSParserValueList; |
50 class CSSPrimitiveValue; | 45 class CSSPrimitiveValue; |
51 class CSSProperty; | 46 class CSSProperty; |
52 class CSSQuadValue; | 47 class CSSQuadValue; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*); | 178 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*); |
184 bool parseGridTemplateAreasRow(NamedGridAreaMap&, const size_t, size_t&); | 179 bool parseGridTemplateAreasRow(NamedGridAreaMap&, const size_t, size_t&); |
185 PassRefPtrWillBeRawPtr<CSSValue> parseGridTemplateAreas(); | 180 PassRefPtrWillBeRawPtr<CSSValue> parseGridTemplateAreas(); |
186 bool parseGridLineNames(CSSParserValueList&, CSSValueList&, CSSGridLineNames
Value* = nullptr); | 181 bool parseGridLineNames(CSSParserValueList&, CSSValueList&, CSSGridLineNames
Value* = nullptr); |
187 PassRefPtrWillBeRawPtr<CSSValue> parseGridAutoFlow(CSSParserValueList&); | 182 PassRefPtrWillBeRawPtr<CSSValue> parseGridAutoFlow(CSSParserValueList&); |
188 | 183 |
189 PassRefPtrWillBeRawPtr<CSSValue> parseLegacyPosition(); | 184 PassRefPtrWillBeRawPtr<CSSValue> parseLegacyPosition(); |
190 PassRefPtrWillBeRawPtr<CSSValue> parseItemPositionOverflowPosition(); | 185 PassRefPtrWillBeRawPtr<CSSValue> parseItemPositionOverflowPosition(); |
191 PassRefPtrWillBeRawPtr<CSSValue> parseContentDistributionOverflowPosition(); | 186 PassRefPtrWillBeRawPtr<CSSValue> parseContentDistributionOverflowPosition(); |
192 | 187 |
193 PassRefPtrWillBeRawPtr<CSSValue> parseShapeProperty(CSSPropertyID propId); | |
194 PassRefPtrWillBeRawPtr<CSSValue> parseBasicShapeAndOrBox(); | |
195 PassRefPtrWillBeRawPtr<CSSValue> parseBasicShape(); | |
196 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseShapeRadius(CSSParserValue*); | |
197 | |
198 PassRefPtrWillBeRawPtr<CSSBasicShapeCircleValue> parseBasicShapeCircle(CSSPa
rserValueList* args); | |
199 PassRefPtrWillBeRawPtr<CSSBasicShapeEllipseValue> parseBasicShapeEllipse(CSS
ParserValueList* args); | |
200 PassRefPtrWillBeRawPtr<CSSBasicShapePolygonValue> parseBasicShapePolygon(CSS
ParserValueList* args); | |
201 PassRefPtrWillBeRawPtr<CSSBasicShapeInsetValue> parseBasicShapeInset(CSSPars
erValueList* args); | |
202 | |
203 bool consumeFont(bool important); | 188 bool consumeFont(bool important); |
204 bool consumeSystemFont(bool important); | 189 bool consumeSystemFont(bool important); |
205 | 190 |
206 bool consumeBorderSpacing(bool important); | 191 bool consumeBorderSpacing(bool important); |
207 | 192 |
208 bool parseColorParameters(const CSSParserValue*, int* colorValues, bool pars
eAlpha); | 193 bool parseColorParameters(const CSSParserValue*, int* colorValues, bool pars
eAlpha); |
209 bool parseHSLParameters(const CSSParserValue*, double* colorValues, bool par
seAlpha); | 194 bool parseHSLParameters(const CSSParserValue*, double* colorValues, bool par
seAlpha); |
210 PassRefPtrWillBeRawPtr<CSSValue> parseColor(const CSSParserValue*, bool acce
ptQuirkyColors = false); | 195 PassRefPtrWillBeRawPtr<CSSValue> parseColor(const CSSParserValue*, bool acce
ptQuirkyColors = false); |
211 bool parseColorFromValue(const CSSParserValue*, RGBA32&, bool acceptQuirkyCo
lors = false); | 196 bool parseColorFromValue(const CSSParserValue*, RGBA32&, bool acceptQuirkyCo
lors = false); |
212 | 197 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 // Locals during parsing: | 307 // Locals during parsing: |
323 int m_inParseShorthand; | 308 int m_inParseShorthand; |
324 CSSPropertyID m_currentShorthand; | 309 CSSPropertyID m_currentShorthand; |
325 bool m_implicitShorthand; | 310 bool m_implicitShorthand; |
326 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; | 311 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; |
327 }; | 312 }; |
328 | 313 |
329 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); | 314 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); |
330 CSSValueID cssValueKeywordID(const CSSParserString&); | 315 CSSValueID cssValueKeywordID(const CSSParserString&); |
331 | 316 |
332 // TODO(rwlbuis): move to CSSPropertyParser.cpp once CSSParserToken conversion i
s done. | |
333 void completeBorderRadii(RefPtrWillBeRawPtr<CSSPrimitiveValue> radii[4]); | |
334 | |
335 } // namespace blink | 317 } // namespace blink |
336 | 318 |
337 #endif // CSSPropertyParser_h | 319 #endif // CSSPropertyParser_h |
OLD | NEW |