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

Unified Diff: third_party/WebKit/Source/core/css/StyleSheetContents.h

Issue 2289333003: CSS Lazy Parsing perf jobs (Closed)
Patch Set: CL for src perf tryjob to run blink_style.top_25 benchmark on all-android platform(s) Created 4 years, 2 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/StyleSheetContents.h
diff --git a/third_party/WebKit/Source/core/css/StyleSheetContents.h b/third_party/WebKit/Source/core/css/StyleSheetContents.h
index af8aad317e489eb079ee850efdd439f8f04e0e80..7b1a903564cb881ad8a05de849124834415ae2cf 100644
--- a/third_party/WebKit/Source/core/css/StyleSheetContents.h
+++ b/third_party/WebKit/Source/core/css/StyleSheetContents.h
@@ -31,6 +31,7 @@
#include "wtf/text/AtomicStringHash.h"
#include "wtf/text/StringHash.h"
#include "wtf/text/TextPosition.h"
+#include "core/css/parser/CSSTokenizer.h"
namespace blink {
@@ -172,6 +173,12 @@ class CORE_EXPORT StyleSheetContents
String sourceMapURL() const { return m_sourceMapURL; }
+ void takeEscapedStrings(std::unique_ptr<Vector<String>> strings) {
+ m_escapedStrings.reset(strings.release());
+ }
+
+ CSSTokenizer::Scope m_scope;
+
DECLARE_TRACE();
private:
@@ -212,6 +219,14 @@ class CORE_EXPORT StyleSheetContents
Member<RuleSet> m_ruleSet;
String m_sourceMapURL;
+
+ // Used for retaining references to escaped strings for lazy parsing. For
+ // non-lazy parsing these are only retained in the CSSTokenizer::Scope.
+ std::unique_ptr<Vector<String>> m_escapedStrings;
+
+ // Only initialized if using lazy parsing. Also referenced on the css
+ // resource.
+ String m_sheetText;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleRule.cpp ('k') | third_party/WebKit/Source/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698