Unreviewed, fixed test crashes.
authorharaken@chromium.org <haraken@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Mar 2012 06:05:03 +0000 (06:05 +0000)
committerharaken@chromium.org <haraken@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Mar 2012 06:05:03 +0000 (06:05 +0000)
* bindings/v8/custom/V8NamedNodeMapCustom.cpp:
(WebCore::toV8):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@110016 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/bindings/v8/custom/V8NamedNodeMapCustom.cpp

index e053bfd..f67185a 100644 (file)
@@ -1,3 +1,10 @@
+2012-03-06  Kentaro Hara  <haraken@chromium.org>
+
+        Unreviewed, fixed test crashes.
+
+        * bindings/v8/custom/V8NamedNodeMapCustom.cpp:
+        (WebCore::toV8):
+
 2012-03-06  Hajime Morrita  <morrita@chromium.org>
 
         https://bugs.webkit.org/show_bug.cgi?id=79935
index 111ce4d..f303128 100644 (file)
@@ -79,7 +79,7 @@ v8::Handle<v8::Value> toV8(NamedNodeMap* impl)
     // Add a hidden reference from named node map to its owner node.
     Element* element = impl->element();
     if (!wrapper.IsEmpty() && element)
-        toV8(element).As<v8::Object>()->SetHiddenValue(V8HiddenPropertyName::ownerNode(), wrapper);
+        wrapper->SetHiddenValue(V8HiddenPropertyName::ownerNode(), toV8(element));
     return wrapper;
 }