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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasStyle.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/modules/canvas2d/CanvasStyle.h
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasStyle.h b/third_party/WebKit/Source/modules/canvas2d/CanvasStyle.h
index 02923de261e0b797aa6490de60e86a436b1de2b5..e182e295bf582989f30f166889416861be090a53 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasStyle.h
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasStyle.h
@@ -27,6 +27,7 @@
#ifndef CanvasStyle_h
#define CanvasStyle_h
+#include "core/css/CSSValuePool.h"
#include "platform/graphics/Color.h"
#include "platform/heap/Handle.h"
#include "wtf/Assertions.h"
@@ -73,7 +74,7 @@ private:
Member<CanvasPattern> m_pattern;
};
-bool parseColorOrCurrentColor(Color& parsedColor, const String& colorString, HTMLCanvasElement*);
+bool parseColorOrCurrentColor(Color& parsedColor, const String& colorString, HTMLCanvasElement*, CSSValuePool* localCssValuePool = nullptr);
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAnimatedColor.cpp ('k') | third_party/WebKit/Source/modules/canvas2d/CanvasStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698