| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 PassRefPtrWillBeRawPtr<CSSValue> parseColor(const CSSParserValue*, bool acce
ptQuirkyColors = false); | 209 PassRefPtrWillBeRawPtr<CSSValue> parseColor(const CSSParserValue*, bool acce
ptQuirkyColors = false); |
| 210 bool parseColorFromValue(const CSSParserValue*, RGBA32&, bool acceptQuirkyCo
lors = false); | 210 bool parseColorFromValue(const CSSParserValue*, RGBA32&, bool acceptQuirkyCo
lors = false); |
| 211 | 211 |
| 212 // CSS3 Parsing Routines (for properties specific to CSS3) | 212 // CSS3 Parsing Routines (for properties specific to CSS3) |
| 213 bool parseBorderImageShorthand(CSSPropertyID, bool important); | 213 bool parseBorderImageShorthand(CSSPropertyID, bool important); |
| 214 PassRefPtrWillBeRawPtr<CSSValue> parseBorderImage(CSSPropertyID); | 214 PassRefPtrWillBeRawPtr<CSSValue> parseBorderImage(CSSPropertyID); |
| 215 bool parseBorderImageRepeat(RefPtrWillBeRawPtr<CSSValue>&); | 215 bool parseBorderImageRepeat(RefPtrWillBeRawPtr<CSSValue>&); |
| 216 bool parseBorderImageSlice(CSSPropertyID, RefPtrWillBeRawPtr<CSSBorderImageS
liceValue>&); | 216 bool parseBorderImageSlice(CSSPropertyID, RefPtrWillBeRawPtr<CSSBorderImageS
liceValue>&); |
| 217 bool parseBorderImageWidth(RefPtrWillBeRawPtr<CSSQuadValue>&); | 217 bool parseBorderImageWidth(RefPtrWillBeRawPtr<CSSQuadValue>&); |
| 218 bool parseBorderImageOutset(RefPtrWillBeRawPtr<CSSQuadValue>&); | 218 bool parseBorderImageOutset(RefPtrWillBeRawPtr<CSSQuadValue>&); |
| 219 bool parseBorderRadius(CSSPropertyID, bool important); | 219 bool parseRadii(RefPtrWillBeRawPtr<CSSPrimitiveValue> radii[4], RefPtrWillBe
RawPtr<CSSPrimitiveValue> radii2[4], CSSParserValueList*, CSSPropertyID = CSSPro
pertyInvalid); |
| 220 | 220 |
| 221 PassRefPtrWillBeRawPtr<CSSValue> parseReflect(); | 221 PassRefPtrWillBeRawPtr<CSSValue> parseReflect(); |
| 222 | 222 |
| 223 bool consumeFlex(bool important); | 223 bool consumeFlex(bool important); |
| 224 | 224 |
| 225 PassRefPtrWillBeRawPtr<CSSValue> parsePosition(CSSParserValueList*); | 225 PassRefPtrWillBeRawPtr<CSSValue> parsePosition(CSSParserValueList*); |
| 226 PassRefPtrWillBeRawPtr<CSSValueList> parsePositionList(CSSParserValueList*); | 226 PassRefPtrWillBeRawPtr<CSSValueList> parsePositionList(CSSParserValueList*); |
| 227 | 227 |
| 228 // Image generators | 228 // Image generators |
| 229 bool parseDeprecatedGradient(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValu
e>&); | 229 bool parseDeprecatedGradient(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValu
e>&); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 241 PassRefPtrWillBeRawPtr<CSSFunctionValue> parseBuiltinFilterArguments(CSSPars
erValueList*, CSSValueID); | 241 PassRefPtrWillBeRawPtr<CSSFunctionValue> parseBuiltinFilterArguments(CSSPars
erValueList*, CSSValueID); |
| 242 | 242 |
| 243 bool parseCalculation(CSSParserValue*, ValueRange); | 243 bool parseCalculation(CSSParserValue*, ValueRange); |
| 244 | 244 |
| 245 bool parseGeneratedImage(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&)
; | 245 bool parseGeneratedImage(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&)
; |
| 246 | 246 |
| 247 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSPar
serValue*); | 247 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSPar
serValue*); |
| 248 PassRefPtrWillBeRawPtr<CSSStringValue> createPrimitiveStringValue(CSSParserV
alue*); | 248 PassRefPtrWillBeRawPtr<CSSStringValue> createPrimitiveStringValue(CSSParserV
alue*); |
| 249 PassRefPtrWillBeRawPtr<CSSCustomIdentValue> createPrimitiveCustomIdentValue(
CSSParserValue*); | 249 PassRefPtrWillBeRawPtr<CSSCustomIdentValue> createPrimitiveCustomIdentValue(
CSSParserValue*); |
| 250 | 250 |
| 251 PassRefPtrWillBeRawPtr<CSSBasicShapeInsetValue> parseInsetRoundedCorners(Pas
sRefPtrWillBeRawPtr<CSSBasicShapeInsetValue>, CSSParserValueList*); | |
| 252 | |
| 253 class ImplicitScope { | 251 class ImplicitScope { |
| 254 STACK_ALLOCATED(); | 252 STACK_ALLOCATED(); |
| 255 WTF_MAKE_NONCOPYABLE(ImplicitScope); | 253 WTF_MAKE_NONCOPYABLE(ImplicitScope); |
| 256 public: | 254 public: |
| 257 ImplicitScope(CSSPropertyParser* parser) | 255 ImplicitScope(CSSPropertyParser* parser) |
| 258 : m_parser(parser) | 256 : m_parser(parser) |
| 259 { | 257 { |
| 260 m_parser->m_implicitShorthand = true; | 258 m_parser->m_implicitShorthand = true; |
| 261 } | 259 } |
| 262 | 260 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 bool m_implicitShorthand; | 332 bool m_implicitShorthand; |
| 335 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; | 333 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; |
| 336 }; | 334 }; |
| 337 | 335 |
| 338 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); | 336 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); |
| 339 CSSValueID cssValueKeywordID(const CSSParserString&); | 337 CSSValueID cssValueKeywordID(const CSSParserString&); |
| 340 | 338 |
| 341 } // namespace blink | 339 } // namespace blink |
| 342 | 340 |
| 343 #endif // CSSPropertyParser_h | 341 #endif // CSSPropertyParser_h |
| OLD | NEW |