[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

mjs mjs at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 08:06:45 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 860d3d3f8efd2560eac0eef5a78b3550751e8f6c
Author: mjs <mjs at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue Oct 28 22:21:43 2003 +0000

            Reviewed by John.
    
    	- fixed 3464528 - addEventListener does not work for buttons, text areas, or inputs
    
            * khtml/rendering/render_form.cpp:
            (RenderFormElement::slotClicked): Send CLICK_EVENT as well as one
    	of KHTML_CLICK_EVENT or KHTML_DOUBLE_CLICK_EVENT.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5290 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index aeb2043..5786b48 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,5 +1,15 @@
 2003-10-28  Maciej Stachowiak  <mjs at apple.com>
 
+        Reviewed by John.
+
+	- fixed 3464528 - addEventListener does not work for buttons, text areas, or inputs
+
+        * khtml/rendering/render_form.cpp:
+        (RenderFormElement::slotClicked): Send CLICK_EVENT as well as one
+	of KHTML_CLICK_EVENT or KHTML_DOUBLE_CLICK_EVENT.
+
+2003-10-28  Maciej Stachowiak  <mjs at apple.com>
+
         Fixed broken build.
 
         * kwq/KWQKPartsPart.mm:
diff --git a/WebCore/khtml/rendering/render_form.cpp b/WebCore/khtml/rendering/render_form.cpp
index fec69c9..e0a5049 100644
--- a/WebCore/khtml/rendering/render_form.cpp
+++ b/WebCore/khtml/rendering/render_form.cpp
@@ -172,7 +172,16 @@ void RenderFormElement::slotClicked()
     RenderArena *arena = ref();
     QMouseEvent e2( QEvent::MouseButtonRelease, m_mousePos, m_button, m_state);
 
+    element()->dispatchMouseEvent(&e2, EventImpl::CLICK_EVENT, m_clickCount);
+
+    // We also send the KHTML_CLICK or KHTML_DBLCLICK event for
+    // CLICK. This is not part of the DOM specs, but is used for
+    // compatibility with the traditional onclick="" and ondblclick=""
+    // attributes, as there is no way to tell the difference between
+    // single & double clicks using DOM (only the click count is
+    // stored, which is not necessarily the same)
     element()->dispatchMouseEvent(&e2, m_isDoubleClick ? EventImpl::KHTML_DBLCLICK_EVENT : EventImpl::KHTML_CLICK_EVENT, m_clickCount);
+
     m_isDoubleClick = false;
     deref(arena);
 }

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list