RenderTheme does not need to be per-page
[WebKit-https.git] / Source / WebCore / html / canvas / CanvasRenderingContext2D.cpp
index 1314e48..4bc4a41 100644 (file)
@@ -839,7 +839,7 @@ void CanvasRenderingContext2D::setStrokeColor(const String& color, std::optional
         return;
 
     realizeSaves();
-    setStrokeStyle(CanvasStyle::createFromString(color, &canvas().document()));
+    setStrokeStyle(CanvasStyle::createFromString(color));
     modifiableState().unparsedStrokeColor = color;
 }
 
@@ -875,7 +875,7 @@ void CanvasRenderingContext2D::setFillColor(const String& color, std::optional<f
         return;
 
     realizeSaves();
-    setFillStyle(CanvasStyle::createFromString(color, &canvas().document()));
+    setFillStyle(CanvasStyle::createFromString(color));
     modifiableState().unparsedFillColor = color;
 }