Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: Source/core/css/parser/CSSParserImpl.h

Issue 647483009: CSS Parser: Implement parseValue (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase / update Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/css/parser/CSSParser.cpp ('k') | Source/core/css/parser/CSSParserImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « Source/core/css/parser/CSSParser.cpp ('k') | Source/core/css/parser/CSSParserImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698