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

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

Issue 537403002: bindings: Renames from/toInternalPointer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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: 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 940ba7c7a75f921a8453249049ac33aec40c712c..3562750f6969093e5745bf3edf24a3a9ed85c6e0 100644
--- a/Source/bindings/core/v8/custom/V8CanvasRenderingContext2DCustom.cpp
+++ b/Source/bindings/core/v8/custom/V8CanvasRenderingContext2DCustom.cpp
@@ -59,21 +59,21 @@ static v8::Handle<v8::Value> toV8Object(CanvasStyle* style, v8::Handle<v8::Objec
static PassRefPtrWillBeRawPtr<CanvasStyle> toCanvasStyle(v8::Handle<v8::Value> value, v8::Isolate* isolate)
{
- RefPtrWillBeRawPtr<CanvasStyle> canvasStyle = CanvasStyle::createFromGradient(V8CanvasGradient::toNativeWithTypeCheck(isolate, value));
+ RefPtrWillBeRawPtr<CanvasStyle> canvasStyle = CanvasStyle::createFromGradient(V8CanvasGradient::toImplWithTypeCheck(isolate, value));
if (canvasStyle)
return canvasStyle;
- return CanvasStyle::createFromPattern(V8CanvasPattern::toNativeWithTypeCheck(isolate, value));
+ return CanvasStyle::createFromPattern(V8CanvasPattern::toImplWithTypeCheck(isolate, value));
}
void V8CanvasRenderingContext2D::strokeStyleAttributeGetterCustom(const v8::PropertyCallbackInfo<v8::Value>& info)
{
- CanvasRenderingContext2D* impl = V8CanvasRenderingContext2D::toNative(info.Holder());
+ CanvasRenderingContext2D* impl = V8CanvasRenderingContext2D::toImpl(info.Holder());
v8SetReturnValue(info, toV8Object(impl->strokeStyle(), info.Holder(), info.GetIsolate()));
}
void V8CanvasRenderingContext2D::strokeStyleAttributeSetterCustom(v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
- CanvasRenderingContext2D* impl = V8CanvasRenderingContext2D::toNative(info.Holder());
+ CanvasRenderingContext2D* impl = V8CanvasRenderingContext2D::toImpl(info.Holder());
if (RefPtrWillBeRawPtr<CanvasStyle> canvasStyle = toCanvasStyle(value, info.GetIsolate())) {
impl->setStrokeStyle(canvasStyle);
} else {
@@ -84,13 +84,13 @@ void V8CanvasRenderingContext2D::strokeStyleAttributeSetterCustom(v8::Local<v8::
void V8CanvasRenderingContext2D::fillStyleAttributeGetterCustom(const v8::PropertyCallbackInfo<v8::Value>& info)
{
- CanvasRenderingContext2D* impl = V8CanvasRenderingContext2D::toNative(info.Holder());
+ CanvasRenderingContext2D* impl = V8CanvasRenderingContext2D::toImpl(info.Holder());
v8SetReturnValue(info, toV8Object(impl->fillStyle(), info.Holder(), info.GetIsolate()));
}
void V8CanvasRenderingContext2D::fillStyleAttributeSetterCustom(v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
- CanvasRenderingContext2D* impl = V8CanvasRenderingContext2D::toNative(info.Holder());
+ CanvasRenderingContext2D* impl = V8CanvasRenderingContext2D::toImpl(info.Holder());
if (RefPtrWillBeRawPtr<CanvasStyle> canvasStyle = toCanvasStyle(value, info.GetIsolate())) {
impl->setFillStyle(canvasStyle);
} else {
« no previous file with comments | « Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp ('k') | Source/bindings/core/v8/custom/V8CustomEventCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698