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

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

Issue 2711853003: [LazyParseCSS] WIP Implement token discarding
Patch Set: lookup in escape string pool Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.h
diff --git a/third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.h b/third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.h
index 5b177ca342da14e8a98ea1c7fef2eeed1b048c40..494985acc761d479e2f7211fe3acb82f3ccbf437 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.h
@@ -8,6 +8,7 @@
#include "core/css/CSSSelectorList.h"
#include "core/css/StyleSheetContents.h"
#include "core/css/parser/CSSParserMode.h"
+#include "wtf/HashMap.h"
#include "wtf/Vector.h"
#include "wtf/text/WTFString.h"
@@ -41,6 +42,8 @@ class CSSLazyParsingState
bool shouldLazilyParseProperties(const CSSSelectorList&,
const CSSParserTokenRange& block) const;
+ bool tokenBackingUsesEscapedString(const void* tokenBackingBytes);
+
DECLARE_TRACE();
// Exposed for tests. This enum is used to back a histogram, so new values
@@ -62,7 +65,7 @@ class CSSLazyParsingState
void recordUsageMetrics();
Member<const CSSParserContext> m_context;
- Vector<String> m_escapedStrings;
+ HashMap<const void*, String> m_escapedStrings;
// Also referenced on the css resource.
String m_sheetText;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698