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