| 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 PassRefPtr<StyleKeyframe> parseKeyframeRule(StyleSheetContents*, const Strin
g&); | 102 PassRefPtr<StyleKeyframe> parseKeyframeRule(StyleSheetContents*, const Strin
g&); |
| 103 bool parseSupportsCondition(const String&); | 103 bool parseSupportsCondition(const String&); |
| 104 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String
&, bool important, CSSParserMode, StyleSheetContents*); | 104 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String
&, bool important, CSSParserMode, StyleSheetContents*); |
| 105 static bool parseColor(RGBA32& color, const String&, bool strict = false); | 105 static bool parseColor(RGBA32& color, const String&, bool strict = false); |
| 106 static bool parseSystemColor(RGBA32& color, const String&, Document*); | 106 static bool parseSystemColor(RGBA32& color, const String&, Document*); |
| 107 static PassRefPtr<CSSValueList> parseFontFaceValue(const AtomicString&); | 107 static PassRefPtr<CSSValueList> parseFontFaceValue(const AtomicString&); |
| 108 PassRefPtr<CSSPrimitiveValue> parseValidPrimitive(CSSValueID ident, CSSParse
rValue*); | 108 PassRefPtr<CSSPrimitiveValue> parseValidPrimitive(CSSValueID ident, CSSParse
rValue*); |
| 109 bool parseDeclaration(MutableStylePropertySet*, const String&, SourceDataHan
dler*, StyleSheetContents* contextStyleSheet); | 109 bool parseDeclaration(MutableStylePropertySet*, const String&, SourceDataHan
dler*, StyleSheetContents* contextStyleSheet); |
| 110 static PassRefPtr<ImmutableStylePropertySet> parseInlineStyleDeclaration(con
st String&, Element*); | 110 static PassRefPtr<ImmutableStylePropertySet> parseInlineStyleDeclaration(con
st String&, Element*); |
| 111 PassRefPtr<MediaQuerySet> parseMediaQueryList(const String&); | 111 PassRefPtr<MediaQuerySet> parseMediaQueryList(const String&); |
| 112 PassOwnPtr<Vector<double> > parseKeyframeKeyList(const String&); |
| 112 | 113 |
| 113 void addPropertyWithPrefixingVariant(CSSPropertyID, PassRefPtr<CSSValue>, bo
ol important, bool implicit = false); | 114 void addPropertyWithPrefixingVariant(CSSPropertyID, PassRefPtr<CSSValue>, bo
ol important, bool implicit = false); |
| 114 void addProperty(CSSPropertyID, PassRefPtr<CSSValue>, bool important, bool i
mplicit = false); | 115 void addProperty(CSSPropertyID, PassRefPtr<CSSValue>, bool important, bool i
mplicit = false); |
| 115 void rollbackLastProperties(int num); | 116 void rollbackLastProperties(int num); |
| 116 bool hasProperties() const { return !m_parsedProperties.isEmpty(); } | 117 bool hasProperties() const { return !m_parsedProperties.isEmpty(); } |
| 117 void addExpandedPropertyForValue(CSSPropertyID propId, PassRefPtr<CSSValue>,
bool); | 118 void addExpandedPropertyForValue(CSSPropertyID propId, PassRefPtr<CSSValue>,
bool); |
| 118 void setCurrentProperty(CSSPropertyID); | 119 void setCurrentProperty(CSSPropertyID); |
| 119 | 120 |
| 120 bool parseValue(CSSPropertyID, bool important); | 121 bool parseValue(CSSPropertyID, bool important); |
| 121 bool parseShorthand(CSSPropertyID, const StylePropertyShorthand&, bool impor
tant); | 122 bool parseShorthand(CSSPropertyID, const StylePropertyShorthand&, bool impor
tant); |
| (...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 } | 762 } |
| 762 | 763 |
| 763 inline int cssyylex(void* yylval, CSSParser* parser) | 764 inline int cssyylex(void* yylval, CSSParser* parser) |
| 764 { | 765 { |
| 765 return parser->lex(yylval); | 766 return parser->lex(yylval); |
| 766 } | 767 } |
| 767 | 768 |
| 768 } // namespace WebCore | 769 } // namespace WebCore |
| 769 | 770 |
| 770 #endif // CSSParser_h | 771 #endif // CSSParser_h |
| OLD | NEW |