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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSParserLocalContext.h

Issue 2901393002: Create a new local context class. (Closed)
Patch Set: Add parameter name. Created 3 years, 7 months 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
Index: third_party/WebKit/Source/core/css/parser/CSSParserLocalContext.h
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserLocalContext.h b/third_party/WebKit/Source/core/css/parser/CSSParserLocalContext.h
new file mode 100644
index 0000000000000000000000000000000000000000..952dbcbdcde6370891f40ee3d447df6823148c30
--- /dev/null
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserLocalContext.h
@@ -0,0 +1,29 @@
+// Copyright 2017 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 CSSParserLocalContext_h
+#define CSSParserLocalContext_h
+
+#include "platform/wtf/Allocator.h"
+
+namespace blink {
+
+// A wrapper class containing all local context when parsing a property.
+// TODO(jiameng): add info for shorthand properties into this class.
+
+class CSSParserLocalContext {
+ STACK_ALLOCATED();
+
+ public:
+ CSSParserLocalContext();
+ explicit CSSParserLocalContext(bool use_alias_parsing);
+ bool GetUseAliasParsing();
+
+ private:
+ bool use_alias_parsing_;
+};
+
+} // namespace blink
+
+#endif // CSSParserLocalContext_h
« no previous file with comments | « third_party/WebKit/Source/core/css/BUILD.gn ('k') | third_party/WebKit/Source/core/css/parser/CSSParserLocalContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698