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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
84 | 84 |
85 ~BisonCSSParser(); | 85 ~BisonCSSParser(); |
86 | 86 |
87 void parseSheet(StyleSheetContents*, const String&, const TextPosition& star tPosition = TextPosition::minimumPosition(), CSSParserObserver* = 0, bool = fals e); | 87 void parseSheet(StyleSheetContents*, const String&, const TextPosition& star tPosition = TextPosition::minimumPosition(), CSSParserObserver* = 0, bool = fals e); |
88 PassRefPtr<StyleRuleBase> parseRule(StyleSheetContents*, const String&); | 88 PassRefPtr<StyleRuleBase> parseRule(StyleSheetContents*, const String&); |
89 PassRefPtr<StyleKeyframe> parseKeyframeRule(StyleSheetContents*, const Strin g&); | 89 PassRefPtr<StyleKeyframe> parseKeyframeRule(StyleSheetContents*, const Strin g&); |
90 bool parseSupportsCondition(const String&); | 90 bool parseSupportsCondition(const String&); |
91 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String &, bool important, CSSParserMode, StyleSheetContents*); | 91 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String &, bool important, CSSParserMode, StyleSheetContents*); |
92 static bool parseColor(RGBA32& color, const String&, bool strict = false); | 92 static bool parseColor(RGBA32& color, const String&, bool strict = false); |
93 static bool parseSystemColor(RGBA32& color, const String&, Document*); | 93 static bool parseSystemColor(RGBA32& color, const String&, Document*); |
94 static PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceValue(const AtomicS tring&); | 94 static PassRefPtr<CSSValueList> parseFontFaceValue(const AtomicString&); |
dstockwell
2014/02/24 04:58:40
Appears this was not rebased correctly?
rjwright
2014/02/24 11:17:46
Done.
| |
95 static PassRefPtr<CSSValue> parseAnimationTimingFunctionValue(const String&) ; | 95 static PassRefPtr<CSSValue> parseAnimationTimingFunctionValue(const String&) ; |
96 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseValidPrimitive(CSSValueID ide nt, CSSParserValue*); | 96 PassRefPtr<CSSPrimitiveValue> parseValidPrimitive(CSSValueID ident, CSSParse rValue*); |
97 bool parseDeclaration(MutableStylePropertySet*, const String&, CSSParserObse rver*, StyleSheetContents* contextStyleSheet); | 97 bool parseDeclaration(MutableStylePropertySet*, const String&, CSSParserObse rver*, StyleSheetContents* contextStyleSheet); |
98 static PassRefPtr<ImmutableStylePropertySet> parseInlineStyleDeclaration(con st String&, Element*); | 98 static PassRefPtr<ImmutableStylePropertySet> parseInlineStyleDeclaration(con st String&, Element*); |
99 PassRefPtr<MediaQuerySet> parseMediaQueryList(const String&); | 99 PassRefPtr<MediaQuerySet> parseMediaQueryList(const String&); |
100 PassOwnPtr<Vector<double> > parseKeyframeKeyList(const String&); | 100 PassOwnPtr<Vector<double> > parseKeyframeKeyList(const String&); |
101 | 101 |
102 void addPropertyWithPrefixingVariant(CSSPropertyID, PassRefPtr<CSSValue>, bo ol important, bool implicit = false); | 102 void addPropertyWithPrefixingVariant(CSSPropertyID, PassRefPtr<CSSValue>, bo ol important, bool implicit = false); |
103 void addProperty(CSSPropertyID, PassRefPtr<CSSValue>, bool important, bool i mplicit = false); | 103 void addProperty(CSSPropertyID, PassRefPtr<CSSValue>, bool important, bool i mplicit = false); |
104 void rollbackLastProperties(int num); | 104 void rollbackLastProperties(int num); |
105 bool hasProperties() const { return !m_parsedProperties.isEmpty(); } | 105 bool hasProperties() const { return !m_parsedProperties.isEmpty(); } |
106 void addExpandedPropertyForValue(CSSPropertyID propId, PassRefPtr<CSSValue>, bool); | 106 void addExpandedPropertyForValue(CSSPropertyID propId, PassRefPtr<CSSValue>, bool); |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
625 bool isValidNthToken(const CSSParserString&); | 625 bool isValidNthToken(const CSSParserString&); |
626 | 626 |
627 inline int cssyylex(void* yylval, BisonCSSParser* parser) | 627 inline int cssyylex(void* yylval, BisonCSSParser* parser) |
628 { | 628 { |
629 return parser->m_tokenizer.lex(yylval); | 629 return parser->m_tokenizer.lex(yylval); |
630 } | 630 } |
631 | 631 |
632 } // namespace WebCore | 632 } // namespace WebCore |
633 | 633 |
634 #endif // BisonCSSParser_h | 634 #endif // BisonCSSParser_h |
OLD | NEW |