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

Unified Diff: Source/core/css/parser/CSSParserValues.h

Issue 1161963002: Shrinking CSSParserToken for lower CSS parsing memory usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed unused union members. Created 5 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
« no previous file with comments | « Source/core/css/parser/CSSParserToken.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSParserValues.h
diff --git a/Source/core/css/parser/CSSParserValues.h b/Source/core/css/parser/CSSParserValues.h
index 69df56078988378720889593826c58127a07f19b..a08b4c3fd6d60a09548e7eb117d4e94e0fa41fbb 100644
--- a/Source/core/css/parser/CSSParserValues.h
+++ b/Source/core/css/parser/CSSParserValues.h
@@ -48,6 +48,13 @@ struct CSSParserString {
m_is8Bit = false;
}
+ void initRaw(const void* charactersRaw, unsigned length, bool is8Bit)
+ {
+ m_data.charactersRaw = charactersRaw;
+ m_length = length;
+ m_is8Bit = is8Bit;
+ }
+
void init(const String& string)
{
m_length = string.length();
@@ -94,6 +101,7 @@ struct CSSParserString {
union {
const LChar* characters8;
const UChar* characters16;
+ const void* charactersRaw;
} m_data;
unsigned m_length;
bool m_is8Bit;
« no previous file with comments | « Source/core/css/parser/CSSParserToken.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698