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

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

Issue 1863793003: Make CSSValuePool thread local to ensure correct parsing in colors on workers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase with master Created 4 years, 8 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/CSSParserFastPaths.h
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.h b/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.h
index 5d43a5cfd2872926629e507dcbba8e2840439872..fd0c4b1308a8e105a575c6b328a10ba69799c47a 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.h
@@ -7,6 +7,7 @@
#include "core/CSSPropertyNames.h"
#include "core/CSSValueKeywords.h"
+#include "core/css/CSSValuePool.h"
#include "platform/graphics/Color.h"
#include "platform/heap/Handle.h"
#include "wtf/Allocator.h"
@@ -21,13 +22,13 @@ class CSSParserFastPaths {
public:
// Parses simple values like '10px' or 'green', but makes no guarantees
// about handling any property completely.
- static RawPtr<CSSValue> maybeParseValue(CSSPropertyID, const String&, CSSParserMode);
+ static RawPtr<CSSValue> maybeParseValue(CSSPropertyID, const String&, CSSParserMode, CSSValuePool* localCSSValuePool = nullptr);
// Properties handled here shouldn't be explicitly handled in CSSPropertyParser
static bool isKeywordPropertyID(CSSPropertyID);
static bool isValidKeywordPropertyAndValue(CSSPropertyID, CSSValueID);
- static RawPtr<CSSValue> parseColor(const String&, CSSParserMode);
+ static RawPtr<CSSValue> parseColor(const String&, CSSParserMode, CSSValuePool*);
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698