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

hyatt hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 06:44:06 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 2bf237e2ca411cadb326c30433d08e565a8e8fda
Author: hyatt <hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue Sep 24 22:21:50 2002 +0000

    	Fix updating of the document's notion of the focused node
    	to happen on mouse down rather than click.  This matches
    	the behavior of all other browsers (IE, Gecko, etc.).
    
    	This fixes the drawing of the outline on the brainjar.com
    	DHTML menus.
    
            * khtml/khtmlview.cpp:
            (KHTMLView::dispatchMouseEvent):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2149 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog-2002-12-03 b/WebCore/ChangeLog-2002-12-03
index 9877e26..d3a1859 100644
--- a/WebCore/ChangeLog-2002-12-03
+++ b/WebCore/ChangeLog-2002-12-03
@@ -1,5 +1,17 @@
 2002-09-24  David Hyatt  <hyatt at apple.com>
 
+	Fix updating of the document's notion of the focused node
+	to happen on mouse down rather than click.  This matches
+	the behavior of all other browsers (IE, Gecko, etc.).
+
+	This fixes the drawing of the outline on the brainjar.com
+	DHTML menus.
+	
+        * khtml/khtmlview.cpp:
+        (KHTMLView::dispatchMouseEvent):
+
+2002-09-24  David Hyatt  <hyatt at apple.com>
+
 	Make sure that changes to the CLASS attribute mark the
 	element as changed (as if a CSS property were added or
 	removed).
diff --git a/WebCore/ChangeLog-2003-10-25 b/WebCore/ChangeLog-2003-10-25
index 9877e26..d3a1859 100644
--- a/WebCore/ChangeLog-2003-10-25
+++ b/WebCore/ChangeLog-2003-10-25
@@ -1,5 +1,17 @@
 2002-09-24  David Hyatt  <hyatt at apple.com>
 
+	Fix updating of the document's notion of the focused node
+	to happen on mouse down rather than click.  This matches
+	the behavior of all other browsers (IE, Gecko, etc.).
+
+	This fixes the drawing of the outline on the brainjar.com
+	DHTML menus.
+	
+        * khtml/khtmlview.cpp:
+        (KHTMLView::dispatchMouseEvent):
+
+2002-09-24  David Hyatt  <hyatt at apple.com>
+
 	Make sure that changes to the CLASS attribute mark the
 	element as changed (as if a CSS property were added or
 	removed).
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index 9877e26..d3a1859 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,5 +1,17 @@
 2002-09-24  David Hyatt  <hyatt at apple.com>
 
+	Fix updating of the document's notion of the focused node
+	to happen on mouse down rather than click.  This matches
+	the behavior of all other browsers (IE, Gecko, etc.).
+
+	This fixes the drawing of the outline on the brainjar.com
+	DHTML menus.
+	
+        * khtml/khtmlview.cpp:
+        (KHTMLView::dispatchMouseEvent):
+
+2002-09-24  David Hyatt  <hyatt at apple.com>
+
 	Make sure that changes to the CLASS attribute mark the
 	element as changed (as if a CSS property were added or
 	removed).
diff --git a/WebCore/khtml/khtmlview.cpp b/WebCore/khtml/khtmlview.cpp
index 3fb1b0e..4365b7d 100644
--- a/WebCore/khtml/khtmlview.cpp
+++ b/WebCore/khtml/khtmlview.cpp
@@ -1345,12 +1345,14 @@ bool KHTMLView::dispatchMouseEvent(int eventId, DOM::NodeImpl *targetNode, bool
             if (me->defaultHandled() || me->defaultPrevented())
                 swallowEvent = true;
 	    me->deref();
-
-            if (targetNode->isSelectable())
+    }
+    else if (eventId == EventImpl::MOUSEDOWN_EVENT) {
+        // Focus should be shifted on mouse down, not on a click.  -dwh
+        if (targetNode->isSelectable())
                 m_part->xmlDocImpl()->setFocusNode(targetNode);
             else
                 m_part->xmlDocImpl()->setFocusNode(0);
-	}
+    }
     }
 
     return swallowEvent;

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list