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 27 matching lines...) Expand all Loading... |
38 #include <wtf/HashMap.h> | 38 #include <wtf/HashMap.h> |
39 #include <wtf/HashSet.h> | 39 #include <wtf/HashSet.h> |
40 #include <wtf/OwnArrayPtr.h> | 40 #include <wtf/OwnArrayPtr.h> |
41 #include <wtf/text/AtomicString.h> | 41 #include <wtf/text/AtomicString.h> |
42 #include <wtf/Vector.h> | 42 #include <wtf/Vector.h> |
43 | 43 |
44 namespace WebCore { | 44 namespace WebCore { |
45 | 45 |
46 class AnimationParseContext; | 46 class AnimationParseContext; |
47 class CSSBorderImageSliceValue; | 47 class CSSBorderImageSliceValue; |
| 48 class CSSMixFunctionValue; |
48 class CSSPrimitiveValue; | 49 class CSSPrimitiveValue; |
49 class CSSSelectorList; | 50 class CSSSelectorList; |
| 51 class CSSShaderValue; |
50 class CSSValue; | 52 class CSSValue; |
51 class CSSValueList; | 53 class CSSValueList; |
52 class CSSBasicShape; | 54 class CSSBasicShape; |
53 class Document; | 55 class Document; |
54 class Element; | 56 class Element; |
55 class ImmutableStylePropertySet; | 57 class ImmutableStylePropertySet; |
56 class MediaQueryExp; | 58 class MediaQueryExp; |
57 class MediaQuerySet; | 59 class MediaQuerySet; |
58 class MutableStylePropertySet; | 60 class MutableStylePropertySet; |
59 class StyleKeyframe; | 61 class StyleKeyframe; |
60 class StylePropertyShorthand; | 62 class StylePropertyShorthand; |
61 class StyleRuleBase; | 63 class StyleRuleBase; |
62 class StyleRuleKeyframes; | 64 class StyleRuleKeyframes; |
63 class StyleKeyframe; | 65 class StyleKeyframe; |
64 class StyleSheetContents; | 66 class StyleSheetContents; |
65 class StyledElement; | 67 class StyledElement; |
66 | 68 |
67 class WebKitCSSArrayFunctionValue; | 69 class WebKitCSSArrayFunctionValue; |
68 class WebKitCSSMixFunctionValue; | |
69 class WebKitCSSShaderValue; | |
70 | 70 |
71 struct CSSParserLocation; | 71 struct CSSParserLocation; |
72 | 72 |
73 class CSSParser { | 73 class CSSParser { |
74 friend inline int cssyylex(void*, CSSParser*); | 74 friend inline int cssyylex(void*, CSSParser*); |
75 | 75 |
76 public: | 76 public: |
77 class SourceDataHandler; | 77 class SourceDataHandler; |
78 enum ErrorType { | 78 enum ErrorType { |
79 NoError, | 79 NoError, |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 bool parseLinearGradient(CSSParserValueList*, RefPtr<CSSValue>&, CSSGradient
Repeat repeating); | 229 bool parseLinearGradient(CSSParserValueList*, RefPtr<CSSValue>&, CSSGradient
Repeat repeating); |
230 bool parseRadialGradient(CSSParserValueList*, RefPtr<CSSValue>&, CSSGradient
Repeat repeating); | 230 bool parseRadialGradient(CSSParserValueList*, RefPtr<CSSValue>&, CSSGradient
Repeat repeating); |
231 bool parseGradientColorStops(CSSParserValueList*, CSSGradientValue*, bool ex
pectComma); | 231 bool parseGradientColorStops(CSSParserValueList*, CSSGradientValue*, bool ex
pectComma); |
232 | 232 |
233 bool parseCrossfade(CSSParserValueList*, RefPtr<CSSValue>&); | 233 bool parseCrossfade(CSSParserValueList*, RefPtr<CSSValue>&); |
234 | 234 |
235 PassRefPtr<CSSValue> parseImageSet(CSSParserValueList*); | 235 PassRefPtr<CSSValue> parseImageSet(CSSParserValueList*); |
236 | 236 |
237 PassRefPtr<CSSValueList> parseFilter(); | 237 PassRefPtr<CSSValueList> parseFilter(); |
238 PassRefPtr<WebKitCSSFilterValue> parseBuiltinFilterArguments(CSSParserValueL
ist*, WebKitCSSFilterValue::FilterOperationType); | 238 PassRefPtr<WebKitCSSFilterValue> parseBuiltinFilterArguments(CSSParserValueL
ist*, WebKitCSSFilterValue::FilterOperationType); |
239 PassRefPtr<WebKitCSSMixFunctionValue> parseMixFunction(CSSParserValue*); | 239 PassRefPtr<CSSMixFunctionValue> parseMixFunction(CSSParserValue*); |
240 PassRefPtr<WebKitCSSArrayFunctionValue> parseCustomFilterArrayFunction(CSSPa
rserValue*); | 240 PassRefPtr<WebKitCSSArrayFunctionValue> parseCustomFilterArrayFunction(CSSPa
rserValue*); |
241 PassRefPtr<CSSValueList> parseCustomFilterTransform(CSSParserValueList*); | 241 PassRefPtr<CSSValueList> parseCustomFilterTransform(CSSParserValueList*); |
242 PassRefPtr<CSSValueList> parseCustomFilterParameters(CSSParserValueList*); | 242 PassRefPtr<CSSValueList> parseCustomFilterParameters(CSSParserValueList*); |
243 PassRefPtr<WebKitCSSFilterValue> parseCustomFilterFunctionWithAtRuleReferenc
eSyntax(CSSParserValue*); | 243 PassRefPtr<WebKitCSSFilterValue> parseCustomFilterFunctionWithAtRuleReferenc
eSyntax(CSSParserValue*); |
244 PassRefPtr<WebKitCSSFilterValue> parseCustomFilterFunctionWithInlineSyntax(C
SSParserValue*); | 244 PassRefPtr<WebKitCSSFilterValue> parseCustomFilterFunctionWithInlineSyntax(C
SSParserValue*); |
245 PassRefPtr<WebKitCSSFilterValue> parseCustomFilterFunction(CSSParserValue*); | 245 PassRefPtr<WebKitCSSFilterValue> parseCustomFilterFunction(CSSParserValue*); |
246 bool parseFilterRuleSrc(); | 246 bool parseFilterRuleSrc(); |
247 PassRefPtr<WebKitCSSShaderValue> parseFilterRuleSrcUriAndFormat(CSSParserVal
ueList*); | 247 PassRefPtr<CSSShaderValue> parseFilterRuleSrcUriAndFormat(CSSParserValueList
*); |
248 | 248 |
249 static bool isBlendMode(int ident); | 249 static bool isBlendMode(int ident); |
250 static bool isCompositeOperator(int ident); | 250 static bool isCompositeOperator(int ident); |
251 | 251 |
252 PassRefPtr<CSSValueList> parseTransform(); | 252 PassRefPtr<CSSValueList> parseTransform(); |
253 PassRefPtr<CSSValue> parseTransformValue(CSSParserValue*); | 253 PassRefPtr<CSSValue> parseTransformValue(CSSParserValue*); |
254 bool parseTransformOrigin(CSSPropertyID propId, CSSPropertyID& propId1, CSSP
ropertyID& propId2, CSSPropertyID& propId3, RefPtr<CSSValue>&, RefPtr<CSSValue>&
, RefPtr<CSSValue>&); | 254 bool parseTransformOrigin(CSSPropertyID propId, CSSPropertyID& propId1, CSSP
ropertyID& propId2, CSSPropertyID& propId3, RefPtr<CSSValue>&, RefPtr<CSSValue>&
, RefPtr<CSSValue>&); |
255 bool parsePerspectiveOrigin(CSSPropertyID propId, CSSPropertyID& propId1, CS
SPropertyID& propId2, RefPtr<CSSValue>&, RefPtr<CSSValue>&); | 255 bool parsePerspectiveOrigin(CSSPropertyID propId, CSSPropertyID& propId1, CS
SPropertyID& propId2, RefPtr<CSSValue>&, RefPtr<CSSValue>&); |
256 | 256 |
257 bool parseTextEmphasisStyle(bool important); | 257 bool parseTextEmphasisStyle(bool important); |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 } | 737 } |
738 | 738 |
739 inline int cssyylex(void* yylval, CSSParser* parser) | 739 inline int cssyylex(void* yylval, CSSParser* parser) |
740 { | 740 { |
741 return parser->lex(yylval); | 741 return parser->lex(yylval); |
742 } | 742 } |
743 | 743 |
744 } // namespace WebCore | 744 } // namespace WebCore |
745 | 745 |
746 #endif // CSSParser_h | 746 #endif // CSSParser_h |
OLD | NEW |