[SCM] WebKit Debian packaging branch, webkit-1.2, updated. upstream/1.1.90-6072-g9a69373

dglazkov at chromium.org dglazkov at chromium.org
Thu Apr 8 00:33:49 UTC 2010


The following commit has been merged in the webkit-1.2 branch:
commit d2aacd058c55e48dcb947e4ba7d8ee33d66eac77
Author: dglazkov at chromium.org <dglazkov at chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Sat Dec 12 04:56:51 2009 +0000

    2009-12-11  Dimitri Glazkov  <dglazkov at chromium.org>
    
            Unreviewed, build fix.
    
            [V8] Change bindings to catch up with http://trac.webkit.org/changeset/52033.
    
            * bindings/v8/custom/V8HTMLFormElementCustom.cpp:
            (WebCore::CALLBACK_FUNC_DECL): Added retrieval of calling frame and passing
              to the submit method.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52039 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index ed331c6..846b7e7 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,13 @@
+2009-12-11  Dimitri Glazkov  <dglazkov at chromium.org>
+
+        Unreviewed, build fix.
+
+        [V8] Change bindings to catch up with http://trac.webkit.org/changeset/52033.
+
+        * bindings/v8/custom/V8HTMLFormElementCustom.cpp:
+        (WebCore::CALLBACK_FUNC_DECL): Added retrieval of calling frame and passing
+          to the submit method.
+
 2009-12-11  Sam Weinig  <sam at webkit.org>
 
         Reviewed by Mark Rowe.
diff --git a/WebCore/bindings/v8/custom/V8HTMLFormElementCustom.cpp b/WebCore/bindings/v8/custom/V8HTMLFormElementCustom.cpp
index 1ec09f7..3fc9009 100644
--- a/WebCore/bindings/v8/custom/V8HTMLFormElementCustom.cpp
+++ b/WebCore/bindings/v8/custom/V8HTMLFormElementCustom.cpp
@@ -83,7 +83,11 @@ NAMED_PROPERTY_GETTER(HTMLFormElement)
 CALLBACK_FUNC_DECL(HTMLFormElementSubmit) {
     INC_STATS("DOM.HTMLFormElement.submit()");
     HTMLFormElement* form = V8DOMWrapper::convertDOMWrapperToNative<HTMLFormElement>(args.Holder());
-    form->submit(0, false, false);
+    Frame* frame = V8Proxy::retrieveFrameForEnteredContext();
+    if (!frame)
+        return v8::Undefined();
+
+    form->submit(frame);
     return v8::Undefined();
 }
 

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list