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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 bool hasProperties() const { return !m_parsedProperties.isEmpty(); } | 116 bool hasProperties() const { return !m_parsedProperties.isEmpty(); } |
117 void addExpandedPropertyForValue(CSSPropertyID propId, PassRefPtr<CSSValue>,
bool); | 117 void addExpandedPropertyForValue(CSSPropertyID propId, PassRefPtr<CSSValue>,
bool); |
118 void setCurrentProperty(CSSPropertyID); | 118 void setCurrentProperty(CSSPropertyID); |
119 | 119 |
120 bool parseValue(CSSPropertyID, bool important); | 120 bool parseValue(CSSPropertyID, bool important); |
121 bool parseShorthand(CSSPropertyID, const StylePropertyShorthand&, bool impor
tant); | 121 bool parseShorthand(CSSPropertyID, const StylePropertyShorthand&, bool impor
tant); |
122 bool parse4Values(CSSPropertyID, const CSSPropertyID* properties, bool impor
tant); | 122 bool parse4Values(CSSPropertyID, const CSSPropertyID* properties, bool impor
tant); |
123 bool parseContent(CSSPropertyID, bool important); | 123 bool parseContent(CSSPropertyID, bool important); |
124 bool parseQuotes(CSSPropertyID, bool important); | 124 bool parseQuotes(CSSPropertyID, bool important); |
125 | 125 |
126 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String
&, bool important, Document*); | 126 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String
&, bool important, const Document&); |
127 void storeVariableDeclaration(const CSSParserString&, PassOwnPtr<CSSParserVa
lueList>, bool important); | 127 void storeVariableDeclaration(const CSSParserString&, PassOwnPtr<CSSParserVa
lueList>, bool important); |
128 | 128 |
129 PassRefPtr<CSSValue> parseAttr(CSSParserValueList* args); | 129 PassRefPtr<CSSValue> parseAttr(CSSParserValueList* args); |
130 | 130 |
131 PassRefPtr<CSSValue> parseBackgroundColor(); | 131 PassRefPtr<CSSValue> parseBackgroundColor(); |
132 | 132 |
133 bool parseFillImage(CSSParserValueList*, RefPtr<CSSValue>&); | 133 bool parseFillImage(CSSParserValueList*, RefPtr<CSSValue>&); |
134 | 134 |
135 enum FillPositionFlag { InvalidFillPosition = 0, AmbiguousFillPosition = 1,
XFillPosition = 2, YFillPosition = 4 }; | 135 enum FillPositionFlag { InvalidFillPosition = 0, AmbiguousFillPosition = 1,
XFillPosition = 2, YFillPosition = 4 }; |
136 enum FillPositionParsingMode { ResolveValuesAsPercent = 0, ResolveValuesAsKe
yword = 1 }; | 136 enum FillPositionParsingMode { ResolveValuesAsPercent = 0, ResolveValuesAsKe
yword = 1 }; |
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
761 } | 761 } |
762 | 762 |
763 inline int cssyylex(void* yylval, CSSParser* parser) | 763 inline int cssyylex(void* yylval, CSSParser* parser) |
764 { | 764 { |
765 return parser->lex(yylval); | 765 return parser->lex(yylval); |
766 } | 766 } |
767 | 767 |
768 } // namespace WebCore | 768 } // namespace WebCore |
769 | 769 |
770 #endif // CSSParser_h | 770 #endif // CSSParser_h |
OLD | NEW |