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

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

Issue 365653002: Oilpan: move 2D Canvas and WebGL objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Smaller adjustments Created 6 years, 5 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 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);

Powered by Google App Engine
This is Rietveld 408576698