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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasStyle.cpp

Issue 1775153002: Make OffscreenCanvasRenderingContext2D renderable on a worker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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.cpp
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasStyle.cpp b/third_party/WebKit/Source/modules/canvas2d/CanvasStyle.cpp
index ac378f17c1a449f9b30465d70e74a22502327579..d7f716a57c61e533a4dc748e27aba1a225947de6 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasStyle.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasStyle.cpp
@@ -69,7 +69,7 @@ bool parseColorOrCurrentColor(Color& parsedColor, const String& colorString, HTM
case ParsedSystemColor:
return true;
case ParsedCurrentColor:
- parsedColor = currentColor(canvas);
+ parsedColor = canvas ? currentColor(canvas) : Color::black;
return true;
case ParseFailed:
return false;

Powered by Google App Engine
This is Rietveld 408576698