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

Unified Diff: Source/bindings/core/v8/custom/V8CanvasRenderingContext2DCustom.cpp

Issue 408813007: Remove non-standard API entry points in CanvasRenderingContext2D (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove some unnecessary mac/virtual/gpu baselines Created 6 years, 1 month 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: Source/bindings/core/v8/custom/V8CanvasRenderingContext2DCustom.cpp
diff --git a/Source/bindings/core/v8/custom/V8CanvasRenderingContext2DCustom.cpp b/Source/bindings/core/v8/custom/V8CanvasRenderingContext2DCustom.cpp
index 3562750f6969093e5745bf3edf24a3a9ed85c6e0..add527ae9d9096bfeb27467b80024f86f4fd7374 100644
--- a/Source/bindings/core/v8/custom/V8CanvasRenderingContext2DCustom.cpp
+++ b/Source/bindings/core/v8/custom/V8CanvasRenderingContext2DCustom.cpp
@@ -78,7 +78,7 @@ void V8CanvasRenderingContext2D::strokeStyleAttributeSetterCustom(v8::Local<v8::
impl->setStrokeStyle(canvasStyle);
} else {
TOSTRING_VOID(V8StringResource<>, colorString, value);
- impl->setStrokeColor(colorString);
+ impl->setStrokeStyle(CanvasStyle::createFromString(colorString));
}
}
@@ -95,7 +95,7 @@ void V8CanvasRenderingContext2D::fillStyleAttributeSetterCustom(v8::Local<v8::Va
impl->setFillStyle(canvasStyle);
} else {
TOSTRING_VOID(V8StringResource<>, colorString, value);
- impl->setFillColor(colorString);
+ impl->setFillStyle(CanvasStyle::createFromString(colorString));
}
}
« no previous file with comments | « LayoutTests/platform/win/virtual/gpu/fast/canvas/shadow-offset-7-expected.png ('k') | Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698