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

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

Issue 2315923002: Lazy Parse CSS (Closed)
Patch Set: CL for src perf tryjob to run page_cycler_v2.typical_25 benchmark on all-android platform(s) Created 4 years, 3 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/CSSParser.h
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParser.h b/third_party/WebKit/Source/core/css/parser/CSSParser.h
index e15b17a482abaa4c6c969540c070b723bfbdbb84..7105050789f83e1ae1bbbd28071869032aaaff9e 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParser.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSParser.h
@@ -8,8 +8,10 @@
#include "core/CSSPropertyNames.h"
#include "core/CoreExport.h"
#include "core/css/CSSValue.h"
+#include "core/css/StylePropertySet.h"
#include "core/css/parser/CSSParserMode.h"
#include "platform/graphics/Color.h"
+#include "wtf/Functional.h"
Charlie Harrison 2016/09/26 22:16:59 These includes can be removed
Charlie Harrison 2016/09/27 13:22:01 Done.
#include <memory>
namespace blink {
@@ -31,7 +33,7 @@ class CORE_EXPORT CSSParser {
public:
// As well as regular rules, allows @import and @namespace but not @charset
static StyleRuleBase* parseRule(const CSSParserContext&, StyleSheetContents*, const String&);
- static void parseSheet(const CSSParserContext&, StyleSheetContents*, const String&);
+ static void parseSheet(const CSSParserContext&, StyleSheetContents*, const String&, bool deferPropertyParsing = false);
static CSSSelectorList parseSelector(const CSSParserContext&, StyleSheetContents*, const String&);
static CSSSelectorList parsePageSelector(const CSSParserContext&, StyleSheetContents*, const String&);
static bool parseDeclarationList(const CSSParserContext&, MutableStylePropertySet*, const String&);

Powered by Google App Engine
This is Rietveld 408576698