| 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. |
| 11 * | 11 * |
| 12 * This library is distributed in the hope that it will be useful, | 12 * This library is distributed in the hope that it will be useful, |
| 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 * Library General Public License for more details. | 15 * Library General Public License for more details. |
| 16 * | 16 * |
| 17 * You should have received a copy of the GNU Library General Public License | 17 * You should have received a copy of the GNU Library General Public License |
| 18 * along with this library; see the file COPYING.LIB. If not, write to | 18 * along with this library; see the file COPYING.LIB. If not, write to |
| 19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 20 * Boston, MA 02110-1301, USA. | 20 * Boston, MA 02110-1301, USA. |
| 21 */ | 21 */ |
| 22 | 22 |
| 23 #ifndef CSSPropertyParser_h | 23 #ifndef CSSPropertyParser_h |
| 24 #define CSSPropertyParser_h | 24 #define CSSPropertyParser_h |
| 25 | 25 |
| 26 #include "core/css/CSSGradientValue.h" | 26 #include "core/css/CSSGradientValue.h" |
| 27 #include "core/css/CSSGridTemplateAreasValue.h" | 27 #include "core/css/CSSGridTemplateAreasValue.h" |
| 28 #include "core/css/CSSPropertySourceData.h" | 28 #include "core/css/CSSPropertySourceData.h" |
| 29 #include "core/css/CSSStringValue.h" |
| 29 #include "platform/Length.h" | 30 #include "platform/Length.h" |
| 30 | 31 |
| 31 namespace blink { | 32 namespace blink { |
| 32 | 33 |
| 33 class BorderImageParseContext; | 34 class BorderImageParseContext; |
| 34 class CSSBorderImageSliceValue; | 35 class CSSBorderImageSliceValue; |
| 35 class CSSBasicShape; | 36 class CSSBasicShape; |
| 36 class CSSBasicShapeInset; | 37 class CSSBasicShapeInset; |
| 37 class CSSFunctionValue; | 38 class CSSFunctionValue; |
| 38 class CSSGradientValue; | 39 class CSSGradientValue; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationProperty(CSSPropertyID, bool
useLegacyParsing); | 144 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationProperty(CSSPropertyID, bool
useLegacyParsing); |
| 144 PassRefPtrWillBeRawPtr<CSSValueList> parseAnimationPropertyList(CSSPropertyI
D, bool useLegacyParsing); | 145 PassRefPtrWillBeRawPtr<CSSValueList> parseAnimationPropertyList(CSSPropertyI
D, bool useLegacyParsing); |
| 145 bool parseAnimationShorthand(bool useLegacyParsing, bool important); | 146 bool parseAnimationShorthand(bool useLegacyParsing, bool important); |
| 146 bool parseTransitionShorthand(bool important); | 147 bool parseTransitionShorthand(bool important); |
| 147 | 148 |
| 148 PassRefPtrWillBeRawPtr<CSSValue> parseColumnWidth(); | 149 PassRefPtrWillBeRawPtr<CSSValue> parseColumnWidth(); |
| 149 PassRefPtrWillBeRawPtr<CSSValue> parseColumnCount(); | 150 PassRefPtrWillBeRawPtr<CSSValue> parseColumnCount(); |
| 150 bool parseColumnsShorthand(bool important); | 151 bool parseColumnsShorthand(bool important); |
| 151 | 152 |
| 152 PassRefPtrWillBeRawPtr<CSSValue> parseGridPosition(); | 153 PassRefPtrWillBeRawPtr<CSSValue> parseGridPosition(); |
| 153 bool parseIntegerOrCustomIdentFromGridPosition(RefPtrWillBeRawPtr<CSSPrimiti
veValue>& numericValue, RefPtrWillBeRawPtr<CSSPrimitiveValue>& gridLineName); | 154 bool parseIntegerOrCustomIdentFromGridPosition(RefPtrWillBeRawPtr<CSSPrimiti
veValue>& numericValue, RefPtrWillBeRawPtr<CSSIdentValue>& gridLineName); |
| 154 bool parseGridItemPositionShorthand(CSSPropertyID, bool important); | 155 bool parseGridItemPositionShorthand(CSSPropertyID, bool important); |
| 155 bool parseGridTemplateRowsAndAreas(PassRefPtrWillBeRawPtr<CSSValue>, bool im
portant); | 156 bool parseGridTemplateRowsAndAreas(PassRefPtrWillBeRawPtr<CSSValue>, bool im
portant); |
| 156 bool parseGridTemplateShorthand(bool important); | 157 bool parseGridTemplateShorthand(bool important); |
| 157 bool parseGridShorthand(bool important); | 158 bool parseGridShorthand(bool important); |
| 158 bool parseGridAreaShorthand(bool important); | 159 bool parseGridAreaShorthand(bool important); |
| 159 bool parseSingleGridAreaLonghand(RefPtrWillBeRawPtr<CSSValue>&); | 160 bool parseSingleGridAreaLonghand(RefPtrWillBeRawPtr<CSSValue>&); |
| 160 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackList(); | 161 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackList(); |
| 161 bool parseGridTrackRepeatFunction(CSSValueList&); | 162 bool parseGridTrackRepeatFunction(CSSValueList&); |
| 162 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackSize(CSSParserValueList& inpu
tList); | 163 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackSize(CSSParserValueList& inpu
tList); |
| 163 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*); | 164 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*); |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 bool parseCalculation(CSSParserValue*, ValueRange); | 264 bool parseCalculation(CSSParserValue*, ValueRange); |
| 264 | 265 |
| 265 bool parseFontFeatureTag(CSSValueList*); | 266 bool parseFontFeatureTag(CSSValueList*); |
| 266 PassRefPtrWillBeRawPtr<CSSValue> parseFontFeatureSettings(); | 267 PassRefPtrWillBeRawPtr<CSSValue> parseFontFeatureSettings(); |
| 267 | 268 |
| 268 bool parseFontVariantLigatures(bool important); | 269 bool parseFontVariantLigatures(bool important); |
| 269 | 270 |
| 270 bool parseGeneratedImage(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&)
; | 271 bool parseGeneratedImage(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&)
; |
| 271 | 272 |
| 272 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSPar
serValue*); | 273 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSPar
serValue*); |
| 273 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveStringValue(CSSPars
erValue*); | 274 PassRefPtrWillBeRawPtr<CSSStringValue> createPrimitiveStringValue(CSSParserV
alue*); |
| 274 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveCustomIdentValue(CS
SParserValue*); | 275 PassRefPtrWillBeRawPtr<CSSIdentValue> createPrimitiveCustomIdentValue(CSSPar
serValue*); |
| 275 | 276 |
| 276 PassRefPtrWillBeRawPtr<CSSValue> createCSSImageValueWithReferrer(const Strin
g& rawValue, const KURL&); | 277 PassRefPtrWillBeRawPtr<CSSValue> createCSSImageValueWithReferrer(const Strin
g& rawValue, const KURL&); |
| 277 | 278 |
| 278 PassRefPtrWillBeRawPtr<CSSBasicShape> parseInsetRoundedCorners(PassRefPtrWil
lBeRawPtr<CSSBasicShapeInset>, CSSParserValueList*); | 279 PassRefPtrWillBeRawPtr<CSSBasicShape> parseInsetRoundedCorners(PassRefPtrWil
lBeRawPtr<CSSBasicShapeInset>, CSSParserValueList*); |
| 279 | 280 |
| 280 enum SizeParameterType { | 281 enum SizeParameterType { |
| 281 None, | 282 None, |
| 282 Auto, | 283 Auto, |
| 283 Length, | 284 Length, |
| 284 PageSize, | 285 PageSize, |
| 285 Orientation, | 286 Orientation, |
| 286 }; | 287 }; |
| 287 | 288 |
| 288 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parsePage(); | 289 PassRefPtrWillBeRawPtr<CSSValue> parsePage(); |
| 289 PassRefPtrWillBeRawPtr<CSSValueList> parseSize(); | 290 PassRefPtrWillBeRawPtr<CSSValueList> parseSize(); |
| 290 SizeParameterType parseSizeParameter(CSSValueList* parsedValues, CSSParserVa
lue*, SizeParameterType prevParamType); | 291 SizeParameterType parseSizeParameter(CSSValueList* parsedValues, CSSParserVa
lue*, SizeParameterType prevParamType); |
| 291 | 292 |
| 292 bool parseFontFaceSrcURI(CSSValueList*); | 293 bool parseFontFaceSrcURI(CSSValueList*); |
| 293 bool parseFontFaceSrcLocal(CSSValueList*); | 294 bool parseFontFaceSrcLocal(CSSValueList*); |
| 294 | 295 |
| 295 class ImplicitScope { | 296 class ImplicitScope { |
| 296 STACK_ALLOCATED(); | 297 STACK_ALLOCATED(); |
| 297 WTF_MAKE_NONCOPYABLE(ImplicitScope); | 298 WTF_MAKE_NONCOPYABLE(ImplicitScope); |
| 298 public: | 299 public: |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 bool m_implicitShorthand; | 379 bool m_implicitShorthand; |
| 379 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; | 380 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; |
| 380 }; | 381 }; |
| 381 | 382 |
| 382 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); | 383 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); |
| 383 CSSValueID cssValueKeywordID(const CSSParserString&); | 384 CSSValueID cssValueKeywordID(const CSSParserString&); |
| 384 | 385 |
| 385 } // namespace blink | 386 } // namespace blink |
| 386 | 387 |
| 387 #endif // CSSPropertyParser_h | 388 #endif // CSSPropertyParser_h |
| OLD | NEW |