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

Unified Diff: Source/bindings/v8/custom/V8HTMLLinkElementCustom.cpp

Issue 25403004: [oilpan] Figure out lifetime of remaining Node raw pointers (Part 2) (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 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/v8/custom/V8HTMLLinkElementCustom.cpp
diff --git a/Source/bindings/v8/custom/V8HTMLLinkElementCustom.cpp b/Source/bindings/v8/custom/V8HTMLLinkElementCustom.cpp
index 664591ed378697c8a733b8e6c581c7cfce64b25c..32348148d5357d1941a32acea9a1cebe535afa38 100644
--- a/Source/bindings/v8/custom/V8HTMLLinkElementCustom.cpp
+++ b/Source/bindings/v8/custom/V8HTMLLinkElementCustom.cpp
@@ -39,13 +39,13 @@ namespace WebCore {
v8::Handle<v8::Value> V8HTMLLinkElement::sizesAttrGetterCustom(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
- HTMLLinkElement* imp = V8HTMLLinkElement::toNative(info.Holder());
+ Handle<HTMLLinkElement> imp = adoptRawResult(V8HTMLLinkElement::toNative(info.Holder()));
return toV8Fast(imp->sizes(), info, imp);
}
void V8HTMLLinkElement::sizesAttrSetterCustom(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
{
- HTMLLinkElement* imp = V8HTMLLinkElement::toNative(info.Holder());
+ Handle<HTMLLinkElement> imp = adoptRawResult(V8HTMLLinkElement::toNative(info.Holder()));
imp->setSizes(toWebCoreString(value));
}

Powered by Google App Engine
This is Rietveld 408576698