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