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

Unified Diff: third_party/WebKit/Source/core/dom/ExecutionContext.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/dom/ExecutionContext.h
diff --git a/third_party/WebKit/Source/core/dom/ExecutionContext.h b/third_party/WebKit/Source/core/dom/ExecutionContext.h
index c767839a09e476ff16d78d90e516bf222cc05fee..3edb9258f24acb0034336926ee2ddee713551d58 100644
--- a/third_party/WebKit/Source/core/dom/ExecutionContext.h
+++ b/third_party/WebKit/Source/core/dom/ExecutionContext.h
@@ -29,6 +29,7 @@
#define ExecutionContext_h
#include "core/CoreExport.h"
+#include "core/css/CSSValuePool.h"
#include "core/dom/ContextLifecycleNotifier.h"
#include "core/dom/ContextLifecycleObserver.h"
#include "core/dom/SecurityContext.h"
@@ -156,6 +157,9 @@ public:
void setReferrerPolicy(ReferrerPolicy);
ReferrerPolicy getReferrerPolicy() const { return m_referrerPolicy; }
+ // Each worker thread has its own CSS values caches.
+ CSSValuePool* localCssValuePool();
+
protected:
ExecutionContext();
virtual ~ExecutionContext();
@@ -194,6 +198,8 @@ private:
bool m_isRunSuspendableTasksScheduled;
ReferrerPolicy m_referrerPolicy;
+
+ Member<CSSValuePool> m_localCssValuePool;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/ExecutionContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698