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 88ea5be6614e665bebdf3e3f4aebf26ccce42dff..940ba7c7a75f921a8453249049ac33aec40c712c 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); |