| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 150 |
| 151 bool parseColorParameters(CSSParserValue*, int* colorValues, bool parseAlpha
); | 151 bool parseColorParameters(CSSParserValue*, int* colorValues, bool parseAlpha
); |
| 152 bool parseHSLParameters(CSSParserValue*, double* colorValues, bool parseAlph
a); | 152 bool parseHSLParameters(CSSParserValue*, double* colorValues, bool parseAlph
a); |
| 153 PassRefPtr<CSSPrimitiveValue> parseColor(CSSParserValue* = 0, bool acceptQui
rkyColors = false); | 153 PassRefPtr<CSSPrimitiveValue> parseColor(CSSParserValue* = 0, bool acceptQui
rkyColors = false); |
| 154 bool parseColorFromValue(CSSParserValue*, RGBA32&, bool acceptQuirkyColors =
false); | 154 bool parseColorFromValue(CSSParserValue*, RGBA32&, bool acceptQuirkyColors =
false); |
| 155 | 155 |
| 156 bool parseLineHeight(); | 156 bool parseLineHeight(); |
| 157 bool parseFontSize(); | 157 bool parseFontSize(); |
| 158 bool parseFontVariant(); | 158 bool parseFontVariant(); |
| 159 bool parseFontWeight(); | 159 bool parseFontWeight(); |
| 160 PassRefPtr<CSSValueList> parseFontFaceSrc(); | |
| 161 PassRefPtr<CSSValueList> parseFontFaceUnicodeRange(); | 160 PassRefPtr<CSSValueList> parseFontFaceUnicodeRange(); |
| 162 | 161 |
| 163 // CSS3 Parsing Routines (for properties specific to CSS3) | 162 // CSS3 Parsing Routines (for properties specific to CSS3) |
| 164 PassRefPtr<CSSValueList> parseShadow(CSSParserValueList*, CSSPropertyID); | 163 PassRefPtr<CSSValueList> parseShadow(CSSParserValueList*, CSSPropertyID); |
| 165 bool parseBorderImageShorthand(CSSPropertyID); | 164 bool parseBorderImageShorthand(CSSPropertyID); |
| 166 PassRefPtr<CSSValue> parseBorderImage(CSSPropertyID); | 165 PassRefPtr<CSSValue> parseBorderImage(CSSPropertyID); |
| 167 bool parseBorderImageRepeat(RefPtr<CSSValue>&); | 166 bool parseBorderImageRepeat(RefPtr<CSSValue>&); |
| 168 bool parseBorderImageSlice(CSSPropertyID, RefPtr<CSSBorderImageSliceValue>&)
; | 167 bool parseBorderImageSlice(CSSPropertyID, RefPtr<CSSBorderImageSliceValue>&)
; |
| 169 bool parseBorderImageWidth(RefPtr<CSSPrimitiveValue>&); | 168 bool parseBorderImageWidth(RefPtr<CSSPrimitiveValue>&); |
| 170 bool parseBorderImageOutset(RefPtr<CSSPrimitiveValue>&); | 169 bool parseBorderImageOutset(RefPtr<CSSPrimitiveValue>&); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 | 208 |
| 210 bool parseGeneratedImage(CSSParserValueList*, RefPtr<CSSValue>&); | 209 bool parseGeneratedImage(CSSParserValueList*, RefPtr<CSSValue>&); |
| 211 | 210 |
| 212 PassRefPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSParserValue*); | 211 PassRefPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSParserValue*); |
| 213 PassRefPtr<CSSPrimitiveValue> createPrimitiveStringValue(CSSParserValue*); | 212 PassRefPtr<CSSPrimitiveValue> createPrimitiveStringValue(CSSParserValue*); |
| 214 | 213 |
| 215 bool validWidthOrHeight(CSSParserValue*); | 214 bool validWidthOrHeight(CSSParserValue*); |
| 216 | 215 |
| 217 PassRefPtr<CSSBasicShape> parseInsetRoundedCorners(PassRefPtr<CSSBasicShapeI
nset>, CSSParserValueList*); | 216 PassRefPtr<CSSBasicShape> parseInsetRoundedCorners(PassRefPtr<CSSBasicShapeI
nset>, CSSParserValueList*); |
| 218 | 217 |
| 219 bool parseFontFaceSrcURI(CSSValueList*); | |
| 220 bool parseFontFaceSrcLocal(CSSValueList*); | |
| 221 | |
| 222 class ImplicitScope { | 218 class ImplicitScope { |
| 223 STACK_ALLOCATED(); | 219 STACK_ALLOCATED(); |
| 224 WTF_MAKE_NONCOPYABLE(ImplicitScope); | 220 WTF_MAKE_NONCOPYABLE(ImplicitScope); |
| 225 public: | 221 public: |
| 226 ImplicitScope(CSSPropertyParser* parser) | 222 ImplicitScope(CSSPropertyParser* parser) |
| 227 : m_parser(parser) | 223 : m_parser(parser) |
| 228 { | 224 { |
| 229 m_parser->m_implicitShorthand = true; | 225 m_parser->m_implicitShorthand = true; |
| 230 } | 226 } |
| 231 | 227 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 CSSPropertyID cssPropertyID(const CSSParserString&); | 317 CSSPropertyID cssPropertyID(const CSSParserString&); |
| 322 CSSPropertyID cssPropertyID(const String&); | 318 CSSPropertyID cssPropertyID(const String&); |
| 323 CSSValueID cssValueKeywordID(const CSSParserString&); | 319 CSSValueID cssValueKeywordID(const CSSParserString&); |
| 324 | 320 |
| 325 bool isKeywordPropertyID(CSSPropertyID); | 321 bool isKeywordPropertyID(CSSPropertyID); |
| 326 bool isValidKeywordPropertyAndValue(CSSPropertyID, CSSValueID, const CSSParserCo
ntext&); | 322 bool isValidKeywordPropertyAndValue(CSSPropertyID, CSSValueID, const CSSParserCo
ntext&); |
| 327 | 323 |
| 328 } // namespace blink | 324 } // namespace blink |
| 329 | 325 |
| 330 #endif // SKY_ENGINE_CORE_CSS_PARSER_CSSPROPERTYPARSER_H_ | 326 #endif // SKY_ENGINE_CORE_CSS_PARSER_CSSPROPERTYPARSER_H_ |
| OLD | NEW |