Index: Source/core/html/canvas/CanvasRenderingContext2D.cpp |
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.cpp b/Source/core/html/canvas/CanvasRenderingContext2D.cpp |
index 0b4206b8f11510390dffd974ba578404aaa28a1b..39229f156129049a8cb8fbc69e80c081ae188e4d 100644 |
--- a/Source/core/html/canvas/CanvasRenderingContext2D.cpp |
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.cpp |
@@ -743,7 +743,7 @@ void CanvasRenderingContext2D::setStrokeColor(const String& color) |
if (color == state().m_unparsedStrokeColor) |
return; |
realizeSaves(); |
- setStrokeStyle(CanvasStyle::createFromString(color, &canvas()->document())); |
+ setStrokeStyle(CanvasStyle::createFromString(color)); |
modifiableState().m_unparsedStrokeColor = color; |
} |
@@ -785,7 +785,7 @@ void CanvasRenderingContext2D::setFillColor(const String& color) |
if (color == state().m_unparsedFillColor) |
return; |
realizeSaves(); |
- setFillStyle(CanvasStyle::createFromString(color, &canvas()->document())); |
+ setFillStyle(CanvasStyle::createFromString(color)); |
modifiableState().m_unparsedFillColor = color; |
} |