| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*,
TrackSizeRestriction = AllowAll); | 179 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*,
TrackSizeRestriction = AllowAll); |
| 185 bool parseGridTemplateAreasRow(NamedGridAreaMap&, const size_t, size_t&); | 180 bool parseGridTemplateAreasRow(NamedGridAreaMap&, const size_t, size_t&); |
| 186 PassRefPtrWillBeRawPtr<CSSValue> parseGridTemplateAreas(); | 181 PassRefPtrWillBeRawPtr<CSSValue> parseGridTemplateAreas(); |
| 187 bool parseGridLineNames(CSSParserValueList&, CSSValueList&, CSSGridLineNames
Value* = nullptr); | 182 bool parseGridLineNames(CSSParserValueList&, CSSValueList&, CSSGridLineNames
Value* = nullptr); |
| 188 PassRefPtrWillBeRawPtr<CSSValue> parseGridAutoFlow(CSSParserValueList&); | 183 PassRefPtrWillBeRawPtr<CSSValue> parseGridAutoFlow(CSSParserValueList&); |
| 189 | 184 |
| 190 PassRefPtrWillBeRawPtr<CSSValue> parseLegacyPosition(); | 185 PassRefPtrWillBeRawPtr<CSSValue> parseLegacyPosition(); |
| 191 PassRefPtrWillBeRawPtr<CSSValue> parseItemPositionOverflowPosition(); | 186 PassRefPtrWillBeRawPtr<CSSValue> parseItemPositionOverflowPosition(); |
| 192 PassRefPtrWillBeRawPtr<CSSValue> parseContentDistributionOverflowPosition(); | 187 PassRefPtrWillBeRawPtr<CSSValue> parseContentDistributionOverflowPosition(); |
| 193 | 188 |
| 194 PassRefPtrWillBeRawPtr<CSSValue> parseShapeProperty(CSSPropertyID propId); | |
| 195 PassRefPtrWillBeRawPtr<CSSValue> parseBasicShapeAndOrBox(); | |
| 196 PassRefPtrWillBeRawPtr<CSSValue> parseBasicShape(); | |
| 197 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseShapeRadius(CSSParserValue*); | |
| 198 | |
| 199 PassRefPtrWillBeRawPtr<CSSBasicShapeCircleValue> parseBasicShapeCircle(CSSPa
rserValueList* args); | |
| 200 PassRefPtrWillBeRawPtr<CSSBasicShapeEllipseValue> parseBasicShapeEllipse(CSS
ParserValueList* args); | |
| 201 PassRefPtrWillBeRawPtr<CSSBasicShapePolygonValue> parseBasicShapePolygon(CSS
ParserValueList* args); | |
| 202 PassRefPtrWillBeRawPtr<CSSBasicShapeInsetValue> parseBasicShapeInset(CSSPars
erValueList* args); | |
| 203 | |
| 204 bool consumeFont(bool important); | 189 bool consumeFont(bool important); |
| 205 bool consumeSystemFont(bool important); | 190 bool consumeSystemFont(bool important); |
| 206 | 191 |
| 207 bool consumeBorderSpacing(bool important); | 192 bool consumeBorderSpacing(bool important); |
| 208 | 193 |
| 209 bool parseColorParameters(const CSSParserValue*, int* colorValues, bool pars
eAlpha); | 194 bool parseColorParameters(const CSSParserValue*, int* colorValues, bool pars
eAlpha); |
| 210 bool parseHSLParameters(const CSSParserValue*, double* colorValues, bool par
seAlpha); | 195 bool parseHSLParameters(const CSSParserValue*, double* colorValues, bool par
seAlpha); |
| 211 PassRefPtrWillBeRawPtr<CSSValue> parseColor(const CSSParserValue*, bool acce
ptQuirkyColors = false); | 196 PassRefPtrWillBeRawPtr<CSSValue> parseColor(const CSSParserValue*, bool acce
ptQuirkyColors = false); |
| 212 bool parseColorFromValue(const CSSParserValue*, RGBA32&, bool acceptQuirkyCo
lors = false); | 197 bool parseColorFromValue(const CSSParserValue*, RGBA32&, bool acceptQuirkyCo
lors = false); |
| 213 | 198 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 // Locals during parsing: | 308 // Locals during parsing: |
| 324 int m_inParseShorthand; | 309 int m_inParseShorthand; |
| 325 CSSPropertyID m_currentShorthand; | 310 CSSPropertyID m_currentShorthand; |
| 326 bool m_implicitShorthand; | 311 bool m_implicitShorthand; |
| 327 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; | 312 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; |
| 328 }; | 313 }; |
| 329 | 314 |
| 330 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); | 315 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); |
| 331 CSSValueID cssValueKeywordID(const CSSParserString&); | 316 CSSValueID cssValueKeywordID(const CSSParserString&); |
| 332 | 317 |
| 333 // TODO(rwlbuis): move to CSSPropertyParser.cpp once CSSParserToken conversion i
s done. | |
| 334 void completeBorderRadii(RefPtrWillBeRawPtr<CSSPrimitiveValue> radii[4]); | |
| 335 | |
| 336 } // namespace blink | 318 } // namespace blink |
| 337 | 319 |
| 338 #endif // CSSPropertyParser_h | 320 #endif // CSSPropertyParser_h |
| OLD | NEW |