| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 193 |
| 194 bool parseColorParameters(const CSSParserValue*, int* colorValues, bool pars
eAlpha); | 194 bool parseColorParameters(const CSSParserValue*, int* colorValues, bool pars
eAlpha); |
| 195 bool parseHSLParameters(const CSSParserValue*, double* colorValues, bool par
seAlpha); | 195 bool parseHSLParameters(const CSSParserValue*, double* colorValues, bool par
seAlpha); |
| 196 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseColor(const CSSParserValue*,
bool acceptQuirkyColors = false); | 196 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseColor(const CSSParserValue*,
bool acceptQuirkyColors = false); |
| 197 bool parseColorFromValue(const CSSParserValue*, RGBA32&, bool acceptQuirkyCo
lors = false); | 197 bool parseColorFromValue(const CSSParserValue*, RGBA32&, bool acceptQuirkyCo
lors = false); |
| 198 | 198 |
| 199 bool acceptQuirkyColors(CSSPropertyID) const; | 199 bool acceptQuirkyColors(CSSPropertyID) const; |
| 200 | 200 |
| 201 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseLineHeight(); | 201 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseLineHeight(); |
| 202 bool parseFontSize(bool important); | 202 bool parseFontSize(bool important); |
| 203 bool parseFontVariant(bool important); | 203 PassRefPtrWillBeRawPtr<CSSValue> consumeFontVariant(); |
| 204 bool parseFontWeight(bool important); | 204 bool parseFontWeight(bool important); |
| 205 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceSrc(); | 205 PassRefPtrWillBeRawPtr<CSSValueList> consumeFontFaceSrc(); |
| 206 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceUnicodeRange(); | |
| 207 | 206 |
| 208 bool parseSVGValue(CSSPropertyID propId, bool important); | 207 bool parseSVGValue(CSSPropertyID propId, bool important); |
| 209 PassRefPtrWillBeRawPtr<CSSValue> parseSVGStrokeDasharray(); | 208 PassRefPtrWillBeRawPtr<CSSValue> parseSVGStrokeDasharray(); |
| 210 | 209 |
| 211 PassRefPtrWillBeRawPtr<CSSValue> parsePaintOrder() const; | 210 PassRefPtrWillBeRawPtr<CSSValue> parsePaintOrder() const; |
| 212 | 211 |
| 213 // CSS3 Parsing Routines (for properties specific to CSS3) | 212 // CSS3 Parsing Routines (for properties specific to CSS3) |
| 214 PassRefPtrWillBeRawPtr<CSSValueList> parseShadow(CSSParserValueList*, CSSPro
pertyID); | 213 PassRefPtrWillBeRawPtr<CSSValueList> parseShadow(CSSParserValueList*, CSSPro
pertyID); |
| 215 PassRefPtrWillBeRawPtr<CSSShadowValue> parseSingleShadow(CSSParserValueList*
, bool allowInset, bool allowSpread); | 214 PassRefPtrWillBeRawPtr<CSSShadowValue> parseSingleShadow(CSSParserValueList*
, bool allowInset, bool allowSpread); |
| 216 bool parseBorderImageShorthand(CSSPropertyID, bool important); | 215 bool parseBorderImageShorthand(CSSPropertyID, bool important); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 PassRefPtrWillBeRawPtr<CSSValue> parseTextEmphasisStyle(); | 254 PassRefPtrWillBeRawPtr<CSSValue> parseTextEmphasisStyle(); |
| 256 | 255 |
| 257 PassRefPtrWillBeRawPtr<CSSValue> parseTouchAction(); | 256 PassRefPtrWillBeRawPtr<CSSValue> parseTouchAction(); |
| 258 | 257 |
| 259 PassRefPtrWillBeRawPtr<CSSValue> parseTextDecoration(); | 258 PassRefPtrWillBeRawPtr<CSSValue> parseTextDecoration(); |
| 260 | 259 |
| 261 PassRefPtrWillBeRawPtr<CSSValue> parseTextIndent(); | 260 PassRefPtrWillBeRawPtr<CSSValue> parseTextIndent(); |
| 262 | 261 |
| 263 bool parseCalculation(CSSParserValue*, ValueRange); | 262 bool parseCalculation(CSSParserValue*, ValueRange); |
| 264 | 263 |
| 265 bool parseFontFeatureTag(CSSValueList*); | |
| 266 PassRefPtrWillBeRawPtr<CSSValue> parseFontFeatureSettings(); | |
| 267 | |
| 268 bool parseFontVariantLigatures(bool important); | |
| 269 | |
| 270 bool parseGeneratedImage(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&)
; | 264 bool parseGeneratedImage(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&)
; |
| 271 | 265 |
| 272 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSPar
serValue*); | 266 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSPar
serValue*); |
| 273 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveStringValue(CSSPars
erValue*); | 267 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveStringValue(CSSPars
erValue*); |
| 274 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveCustomIdentValue(CS
SParserValue*); | 268 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveCustomIdentValue(CS
SParserValue*); |
| 275 | 269 |
| 276 PassRefPtrWillBeRawPtr<CSSValue> createCSSImageValueWithReferrer(const Strin
g& rawValue, const KURL&); | 270 PassRefPtrWillBeRawPtr<CSSValue> createCSSImageValueWithReferrer(const Strin
g& rawValue, const KURL&); |
| 277 | 271 |
| 278 PassRefPtrWillBeRawPtr<CSSBasicShape> parseInsetRoundedCorners(PassRefPtrWil
lBeRawPtr<CSSBasicShapeInset>, CSSParserValueList*); | 272 PassRefPtrWillBeRawPtr<CSSBasicShape> parseInsetRoundedCorners(PassRefPtrWil
lBeRawPtr<CSSBasicShapeInset>, CSSParserValueList*); |
| 279 | 273 |
| 280 enum SizeParameterType { | 274 enum SizeParameterType { |
| 281 None, | 275 None, |
| 282 Auto, | 276 Auto, |
| 283 Length, | 277 Length, |
| 284 PageSize, | 278 PageSize, |
| 285 Orientation, | 279 Orientation, |
| 286 }; | 280 }; |
| 287 | 281 |
| 288 PassRefPtrWillBeRawPtr<CSSValueList> parseSize(); | 282 PassRefPtrWillBeRawPtr<CSSValueList> parseSize(); |
| 289 SizeParameterType parseSizeParameter(CSSValueList* parsedValues, CSSParserVa
lue*, SizeParameterType prevParamType); | 283 SizeParameterType parseSizeParameter(CSSValueList* parsedValues, CSSParserVa
lue*, SizeParameterType prevParamType); |
| 290 | 284 |
| 291 bool parseFontFaceSrcURI(CSSValueList*); | 285 bool consumeFontFaceSrcURI(CSSValueList*); |
| 292 bool parseFontFaceSrcLocal(CSSValueList*); | 286 bool consumeFontFaceSrcLocal(CSSValueList*); |
| 293 | 287 |
| 294 class ImplicitScope { | 288 class ImplicitScope { |
| 295 STACK_ALLOCATED(); | 289 STACK_ALLOCATED(); |
| 296 WTF_MAKE_NONCOPYABLE(ImplicitScope); | 290 WTF_MAKE_NONCOPYABLE(ImplicitScope); |
| 297 public: | 291 public: |
| 298 ImplicitScope(CSSPropertyParser* parser) | 292 ImplicitScope(CSSPropertyParser* parser) |
| 299 : m_parser(parser) | 293 : m_parser(parser) |
| 300 { | 294 { |
| 301 m_parser->m_implicitShorthand = true; | 295 m_parser->m_implicitShorthand = true; |
| 302 } | 296 } |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 bool m_implicitShorthand; | 372 bool m_implicitShorthand; |
| 379 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; | 373 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; |
| 380 }; | 374 }; |
| 381 | 375 |
| 382 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); | 376 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); |
| 383 CSSValueID cssValueKeywordID(const CSSParserString&); | 377 CSSValueID cssValueKeywordID(const CSSParserString&); |
| 384 | 378 |
| 385 } // namespace blink | 379 } // namespace blink |
| 386 | 380 |
| 387 #endif // CSSPropertyParser_h | 381 #endif // CSSPropertyParser_h |
| OLD | NEW |