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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSParserImpl.h
diff --git a/Source/core/css/parser/CSSParserImpl.h b/Source/core/css/parser/CSSParserImpl.h
new file mode 100644
index 0000000000000000000000000000000000000000..eb936c9b6d1144c426454f74fa7d6fcc469a02c6
--- /dev/null
+++ b/Source/core/css/parser/CSSParserImpl.h
@@ -0,0 +1,37 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CSSParserImpl_h
+#define CSSParserImpl_h
+
+#include "core/CSSPropertyNames.h"
+#include "core/css/CSSProperty.h"
+#include "core/css/CSSPropertySourceData.h"
+#include "core/css/parser/CSSParserMode.h"
+#include "core/css/parser/CSSParserToken.h"
+#include "wtf/Vector.h"
+#include "wtf/text/WTFString.h"
+
+namespace blink {
+
+class MutableStylePropertySet;
+
+class CSSParserImpl {
+public:
+ CSSParserImpl(const CSSParserContext&, const String&);
+ static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String&, bool important, const CSSParserContext&);
+
+private:
+ void consumeDeclarationValue(CSSParserTokenIterator start, CSSParserTokenIterator end, CSSPropertyID, bool important, CSSRuleSourceData::Type);
+
+ // FIXME: Can we build StylePropertySets directly?
+ // FIXME: Investigate using a smaller inline buffer
+ WillBeHeapVector<CSSProperty, 256> m_parsedProperties;
+ Vector<CSSParserToken> m_tokens;
+ CSSParserContext m_context;
+};
+
+} // namespace blink
+
+#endif // CSSParserImpl_h
« 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