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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 void addExpandedPropertyForValue(CSSPropertyID propId, PassRefPtr<CSSValue>,
bool); | 105 void addExpandedPropertyForValue(CSSPropertyID propId, PassRefPtr<CSSValue>,
bool); |
106 void setCurrentProperty(CSSPropertyID); | 106 void setCurrentProperty(CSSPropertyID); |
107 | 107 |
108 bool parseValue(CSSPropertyID, bool important); | 108 bool parseValue(CSSPropertyID, bool important); |
109 bool parseShorthand(CSSPropertyID, const StylePropertyShorthand&, bool impor
tant); | 109 bool parseShorthand(CSSPropertyID, const StylePropertyShorthand&, bool impor
tant); |
110 bool parse4Values(CSSPropertyID, const CSSPropertyID* properties, bool impor
tant); | 110 bool parse4Values(CSSPropertyID, const CSSPropertyID* properties, bool impor
tant); |
111 bool parseContent(CSSPropertyID, bool important); | 111 bool parseContent(CSSPropertyID, bool important); |
112 bool parseQuotes(CSSPropertyID, bool important); | 112 bool parseQuotes(CSSPropertyID, bool important); |
113 | 113 |
114 static bool parseValue(StylePropertySet*, CSSPropertyID, const String&, bool
important, Document*); | 114 static bool parseValue(StylePropertySet*, CSSPropertyID, const String&, bool
important, Document*); |
| 115 bool cssVariablesEnabled() const; |
115 void storeVariableDeclaration(const CSSParserString&, PassOwnPtr<CSSParserVa
lueList>, bool important); | 116 void storeVariableDeclaration(const CSSParserString&, PassOwnPtr<CSSParserVa
lueList>, bool important); |
116 | 117 |
117 PassRefPtr<CSSValue> parseAttr(CSSParserValueList* args); | 118 PassRefPtr<CSSValue> parseAttr(CSSParserValueList* args); |
118 | 119 |
119 PassRefPtr<CSSValue> parseBackgroundColor(); | 120 PassRefPtr<CSSValue> parseBackgroundColor(); |
120 | 121 |
121 bool parseFillImage(CSSParserValueList*, RefPtr<CSSValue>&); | 122 bool parseFillImage(CSSParserValueList*, RefPtr<CSSValue>&); |
122 | 123 |
123 enum FillPositionFlag { InvalidFillPosition = 0, AmbiguousFillPosition = 1,
XFillPosition = 2, YFillPosition = 4 }; | 124 enum FillPositionFlag { InvalidFillPosition = 0, AmbiguousFillPosition = 1,
XFillPosition = 2, YFillPosition = 4 }; |
124 enum FillPositionParsingMode { ResolveValuesAsPercent = 0, ResolveValuesAsKe
yword = 1 }; | 125 enum FillPositionParsingMode { ResolveValuesAsPercent = 0, ResolveValuesAsKe
yword = 1 }; |
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
697 } | 698 } |
698 | 699 |
699 inline int cssyylex(void* yylval, CSSParser* parser) | 700 inline int cssyylex(void* yylval, CSSParser* parser) |
700 { | 701 { |
701 return parser->lex(yylval); | 702 return parser->lex(yylval); |
702 } | 703 } |
703 | 704 |
704 } // namespace WebCore | 705 } // namespace WebCore |
705 | 706 |
706 #endif // CSSParser_h | 707 #endif // CSSParser_h |
OLD | NEW |