OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CSSParserImpl_h |
| 6 #define CSSParserImpl_h |
| 7 |
| 8 #include "core/CSSPropertyNames.h" |
| 9 #include "core/css/CSSProperty.h" |
| 10 #include "core/css/CSSPropertySourceData.h" |
| 11 #include "core/css/parser/CSSParserMode.h" |
| 12 #include "core/css/parser/CSSParserToken.h" |
| 13 #include "wtf/Vector.h" |
| 14 #include "wtf/text/WTFString.h" |
| 15 |
| 16 namespace blink { |
| 17 |
| 18 class MutableStylePropertySet; |
| 19 |
| 20 class CSSParserImpl { |
| 21 public: |
| 22 CSSParserImpl(const CSSParserContext&, const String&); |
| 23 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String
&, bool important, const CSSParserContext&); |
| 24 |
| 25 private: |
| 26 void consumeDeclarationValue(CSSParserTokenIterator start, CSSParserTokenIte
rator end, CSSPropertyID, bool important, CSSRuleSourceData::Type); |
| 27 |
| 28 // FIXME: Can we build StylePropertySets directly? |
| 29 // FIXME: Investigate using a smaller inline buffer |
| 30 WillBeHeapVector<CSSProperty, 256> m_parsedProperties; |
| 31 Vector<CSSParserToken> m_tokens; |
| 32 CSSParserContext m_context; |
| 33 }; |
| 34 |
| 35 } // namespace blink |
| 36 |
| 37 #endif // CSSParserImpl_h |
OLD | NEW |