| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 PassRefPtrWillBeRawPtr<StyleKeyframe> parseKeyframeRule(StyleSheetContents*,
const String&); | 85 PassRefPtrWillBeRawPtr<StyleKeyframe> parseKeyframeRule(StyleSheetContents*,
const String&); |
| 86 bool parseSupportsCondition(const String&); | 86 bool parseSupportsCondition(const String&); |
| 87 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String
&, bool important, CSSParserMode, StyleSheetContents*); | 87 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String
&, bool important, CSSParserMode, StyleSheetContents*); |
| 88 static bool parseColor(RGBA32& color, const String&, bool strict = false); | 88 static bool parseColor(RGBA32& color, const String&, bool strict = false); |
| 89 static StyleColor colorFromRGBColorString(const String&); | 89 static StyleColor colorFromRGBColorString(const String&); |
| 90 static bool parseSystemColor(RGBA32& color, const String&); | 90 static bool parseSystemColor(RGBA32& color, const String&); |
| 91 static PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceValue(const AtomicS
tring&); | 91 static PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceValue(const AtomicS
tring&); |
| 92 static PassRefPtrWillBeRawPtr<CSSValue> parseAnimationTimingFunctionValue(co
nst String&); | 92 static PassRefPtrWillBeRawPtr<CSSValue> parseAnimationTimingFunctionValue(co
nst String&); |
| 93 bool parseDeclaration(MutableStylePropertySet*, const String&, CSSParserObse
rver*, StyleSheetContents* contextStyleSheet); | 93 bool parseDeclaration(MutableStylePropertySet*, const String&, CSSParserObse
rver*, StyleSheetContents* contextStyleSheet); |
| 94 static PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> parseInlineStyleDec
laration(const String&, Element*); | 94 static PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> parseInlineStyleDec
laration(const String&, Element*); |
| 95 PassRefPtrWillBeRawPtr<MediaQuerySet> parseMediaQueryList(const String&); | |
| 96 PassOwnPtr<Vector<double> > parseKeyframeKeyList(const String&); | 95 PassOwnPtr<Vector<double> > parseKeyframeKeyList(const String&); |
| 97 bool parseAttributeMatchType(CSSSelector::AttributeMatchType&, const String&
); | 96 bool parseAttributeMatchType(CSSSelector::AttributeMatchType&, const String&
); |
| 98 | 97 |
| 99 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String
&, bool important, const Document&); | 98 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String
&, bool important, const Document&); |
| 100 | 99 |
| 101 bool parseValue(CSSPropertyID, bool important); | 100 bool parseValue(CSSPropertyID, bool important); |
| 102 void parseSelector(const String&, CSSSelectorList&); | 101 void parseSelector(const String&, CSSSelectorList&); |
| 103 | 102 |
| 104 CSSParserSelector* createFloatingSelector(); | 103 CSSParserSelector* createFloatingSelector(); |
| 105 CSSParserSelector* createFloatingSelectorWithTagName(const QualifiedName&); | 104 CSSParserSelector* createFloatingSelectorWithTagName(const QualifiedName&); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 168 |
| 170 PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> createStylePropertySet(); | 169 PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> createStylePropertySet(); |
| 171 | 170 |
| 172 CSSParserContext m_context; | 171 CSSParserContext m_context; |
| 173 | 172 |
| 174 bool m_important; | 173 bool m_important; |
| 175 CSSPropertyID m_id; | 174 CSSPropertyID m_id; |
| 176 RawPtrWillBeMember<StyleSheetContents> m_styleSheet; | 175 RawPtrWillBeMember<StyleSheetContents> m_styleSheet; |
| 177 RefPtrWillBeMember<StyleRuleBase> m_rule; | 176 RefPtrWillBeMember<StyleRuleBase> m_rule; |
| 178 RefPtrWillBeMember<StyleKeyframe> m_keyframe; | 177 RefPtrWillBeMember<StyleKeyframe> m_keyframe; |
| 179 RefPtrWillBeMember<MediaQuerySet> m_mediaList; | |
| 180 OwnPtr<CSSParserValueList> m_valueList; | 178 OwnPtr<CSSParserValueList> m_valueList; |
| 181 bool m_supportsCondition; | 179 bool m_supportsCondition; |
| 182 | 180 |
| 183 WillBeHeapVector<CSSProperty, 256> m_parsedProperties; | 181 WillBeHeapVector<CSSProperty, 256> m_parsedProperties; |
| 184 CSSSelectorList* m_selectorListForParseSelector; | 182 CSSSelectorList* m_selectorListForParseSelector; |
| 185 | 183 |
| 186 unsigned m_numParsedPropertiesBeforeMarginBox; | 184 unsigned m_numParsedPropertiesBeforeMarginBox; |
| 187 | 185 |
| 188 bool m_hadSyntacticallyValidCSSRule; | 186 bool m_hadSyntacticallyValidCSSRule; |
| 189 bool m_logErrors; | 187 bool m_logErrors; |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 inline int cssyylex(void* yylval, BisonCSSParser* parser) | 311 inline int cssyylex(void* yylval, BisonCSSParser* parser) |
| 314 { | 312 { |
| 315 return parser->m_tokenizer.lex(yylval); | 313 return parser->m_tokenizer.lex(yylval); |
| 316 } | 314 } |
| 317 | 315 |
| 318 bool isValidNthToken(const CSSParserString&); | 316 bool isValidNthToken(const CSSParserString&); |
| 319 | 317 |
| 320 } // namespace blink | 318 } // namespace blink |
| 321 | 319 |
| 322 #endif // BisonCSSParser_h | 320 #endif // BisonCSSParser_h |
| OLD | NEW |