| 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/CSSStringValueBase.h" |
| 29 #include "core/css/parser/CSSParserTokenRange.h" | 30 #include "core/css/parser/CSSParserTokenRange.h" |
| 30 #include "platform/Length.h" | 31 #include "platform/Length.h" |
| 31 | 32 |
| 32 namespace blink { | 33 namespace blink { |
| 33 | 34 |
| 34 class BorderImageParseContext; | 35 class BorderImageParseContext; |
| 35 class CSSBorderImageSliceValue; | 36 class CSSBorderImageSliceValue; |
| 36 class CSSBasicShape; | 37 class CSSBasicShape; |
| 37 class CSSBasicShapeInset; | 38 class CSSBasicShapeInset; |
| 38 class CSSFunctionValue; | 39 class CSSFunctionValue; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationProperty(CSSPropertyID, bool
useLegacyParsing); | 146 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationProperty(CSSPropertyID, bool
useLegacyParsing); |
| 146 PassRefPtrWillBeRawPtr<CSSValueList> parseAnimationPropertyList(CSSPropertyI
D, bool useLegacyParsing); | 147 PassRefPtrWillBeRawPtr<CSSValueList> parseAnimationPropertyList(CSSPropertyI
D, bool useLegacyParsing); |
| 147 bool parseAnimationShorthand(bool useLegacyParsing, bool important); | 148 bool parseAnimationShorthand(bool useLegacyParsing, bool important); |
| 148 bool parseTransitionShorthand(bool important); | 149 bool parseTransitionShorthand(bool important); |
| 149 | 150 |
| 150 PassRefPtrWillBeRawPtr<CSSValue> parseColumnWidth(); | 151 PassRefPtrWillBeRawPtr<CSSValue> parseColumnWidth(); |
| 151 PassRefPtrWillBeRawPtr<CSSValue> parseColumnCount(); | 152 PassRefPtrWillBeRawPtr<CSSValue> parseColumnCount(); |
| 152 bool parseColumnsShorthand(bool important); | 153 bool parseColumnsShorthand(bool important); |
| 153 | 154 |
| 154 PassRefPtrWillBeRawPtr<CSSValue> parseGridPosition(); | 155 PassRefPtrWillBeRawPtr<CSSValue> parseGridPosition(); |
| 155 bool parseIntegerOrCustomIdentFromGridPosition(RefPtrWillBeRawPtr<CSSPrimiti
veValue>& numericValue, RefPtrWillBeRawPtr<CSSPrimitiveValue>& gridLineName); | 156 bool parseIntegerOrCustomIdentFromGridPosition(RefPtrWillBeRawPtr<CSSPrimiti
veValue>& numericValue, RefPtrWillBeRawPtr<CSSCustomIdentValue>& gridLineName); |
| 156 bool parseGridItemPositionShorthand(CSSPropertyID, bool important); | 157 bool parseGridItemPositionShorthand(CSSPropertyID, bool important); |
| 157 bool parseGridTemplateRowsAndAreas(PassRefPtrWillBeRawPtr<CSSValue>, bool im
portant); | 158 bool parseGridTemplateRowsAndAreas(PassRefPtrWillBeRawPtr<CSSValue>, bool im
portant); |
| 158 bool parseGridTemplateShorthand(bool important); | 159 bool parseGridTemplateShorthand(bool important); |
| 159 bool parseGridShorthand(bool important); | 160 bool parseGridShorthand(bool important); |
| 160 bool parseGridAreaShorthand(bool important); | 161 bool parseGridAreaShorthand(bool important); |
| 161 bool parseSingleGridAreaLonghand(RefPtrWillBeRawPtr<CSSValue>&); | 162 bool parseSingleGridAreaLonghand(RefPtrWillBeRawPtr<CSSValue>&); |
| 162 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackList(); | 163 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackList(); |
| 163 bool parseGridTrackRepeatFunction(CSSValueList&); | 164 bool parseGridTrackRepeatFunction(CSSValueList&); |
| 164 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackSize(CSSParserValueList& inpu
tList); | 165 PassRefPtrWillBeRawPtr<CSSValue> parseGridTrackSize(CSSParserValueList& inpu
tList); |
| 165 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*); | 166 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*); |
| (...skipping 97 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<CSSCustomIdentValue> createPrimitiveCustomIdentValue(
CSSParserValue*); |
| 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, |
| (...skipping 93 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 |