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 c338a538b44f450faff8c52e6616e8f7c248d037..ce32f15a2f215e1fe77e41d0a22898fd6bedaa8a 100644 |
--- a/Source/bindings/core/v8/custom/V8CanvasRenderingContext2DCustom.cpp |
+++ b/Source/bindings/core/v8/custom/V8CanvasRenderingContext2DCustom.cpp |
@@ -57,9 +57,9 @@ static v8::Handle<v8::Value> toV8Object(CanvasStyle* style, v8::Handle<v8::Objec |
return v8String(isolate, style->color()); |
} |
-static PassRefPtr<CanvasStyle> toCanvasStyle(v8::Handle<v8::Value> value, v8::Isolate* isolate) |
+static PassRefPtrWillBeRawPtr<CanvasStyle> toCanvasStyle(v8::Handle<v8::Value> value, v8::Isolate* isolate) |
{ |
- RefPtr<CanvasStyle> canvasStyle = CanvasStyle::createFromGradient(V8CanvasGradient::toNativeWithTypeCheck(isolate, value)); |
+ RefPtrWillBeRawPtr<CanvasStyle> canvasStyle = CanvasStyle::createFromGradient(V8CanvasGradient::toNativeWithTypeCheck(isolate, value)); |
if (canvasStyle) |
return canvasStyle; |
return CanvasStyle::createFromPattern(V8CanvasPattern::toNativeWithTypeCheck(isolate, value)); |
@@ -74,7 +74,7 @@ void V8CanvasRenderingContext2D::strokeStyleAttributeGetterCustom(const v8::Prop |
void V8CanvasRenderingContext2D::strokeStyleAttributeSetterCustom(v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
{ |
CanvasRenderingContext2D* impl = V8CanvasRenderingContext2D::toNative(info.Holder()); |
- if (RefPtr<CanvasStyle> canvasStyle = toCanvasStyle(value, info.GetIsolate())) { |
+ if (RefPtrWillBeRawPtr<CanvasStyle> canvasStyle = toCanvasStyle(value, info.GetIsolate())) { |
impl->setStrokeStyle(canvasStyle); |
} else { |
TOSTRING_VOID(V8StringResource<>, colorString, value); |
@@ -91,7 +91,7 @@ void V8CanvasRenderingContext2D::fillStyleAttributeGetterCustom(const v8::Proper |
void V8CanvasRenderingContext2D::fillStyleAttributeSetterCustom(v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
{ |
CanvasRenderingContext2D* impl = V8CanvasRenderingContext2D::toNative(info.Holder()); |
- if (RefPtr<CanvasStyle> canvasStyle = toCanvasStyle(value, info.GetIsolate())) { |
+ if (RefPtrWillBeRawPtr<CanvasStyle> canvasStyle = toCanvasStyle(value, info.GetIsolate())) { |
impl->setFillStyle(canvasStyle); |
} else { |
TOSTRING_VOID(V8StringResource<>, colorString, value); |