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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 NoError, | 80 NoError, |
81 PropertyDeclarationError, | 81 PropertyDeclarationError, |
82 InvalidPropertyValueError, | 82 InvalidPropertyValueError, |
83 InvalidPropertyError, | 83 InvalidPropertyError, |
84 InvalidSelectorError, | 84 InvalidSelectorError, |
85 InvalidSupportsConditionError, | 85 InvalidSupportsConditionError, |
86 InvalidRuleError, | 86 InvalidRuleError, |
87 InvalidMediaQueryError, | 87 InvalidMediaQueryError, |
88 InvalidKeyframeSelectorError, | 88 InvalidKeyframeSelectorError, |
89 InvalidSelectorPseudoError, | 89 InvalidSelectorPseudoError, |
| 90 UnterminatedCommentError, |
90 GeneralError | 91 GeneralError |
91 }; | 92 }; |
92 | 93 |
93 CSSParser(const CSSParserContext&, UseCounter* = 0); | 94 CSSParser(const CSSParserContext&, UseCounter* = 0); |
94 | 95 |
95 ~CSSParser(); | 96 ~CSSParser(); |
96 | 97 |
97 void parseSheet(StyleSheetContents*, const String&, int startLineNumber = 0,
SourceDataHandler* = 0, bool = false); | 98 void parseSheet(StyleSheetContents*, const String&, int startLineNumber = 0,
SourceDataHandler* = 0, bool = false); |
98 PassRefPtr<StyleRuleBase> parseRule(StyleSheetContents*, const String&); | 99 PassRefPtr<StyleRuleBase> parseRule(StyleSheetContents*, const String&); |
99 PassRefPtr<StyleKeyframe> parseKeyframeRule(StyleSheetContents*, const Strin
g&); | 100 PassRefPtr<StyleKeyframe> parseKeyframeRule(StyleSheetContents*, const Strin
g&); |
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
741 } | 742 } |
742 | 743 |
743 inline int cssyylex(void* yylval, CSSParser* parser) | 744 inline int cssyylex(void* yylval, CSSParser* parser) |
744 { | 745 { |
745 return parser->lex(yylval); | 746 return parser->lex(yylval); |
746 } | 747 } |
747 | 748 |
748 } // namespace WebCore | 749 } // namespace WebCore |
749 | 750 |
750 #endif // CSSParser_h | 751 #endif // CSSParser_h |
OLD | NEW |