Changeset 19897 in webkit


Ignore:
Timestamp:
Feb 27, 2007 3:13:26 PM (17 years ago)
Author:
antti
Message:

LayoutTests:

Reviewed by Hyatt.


  • fast/events/mouseout-dead-node-expected.checksum: Added.
  • fast/events/mouseout-dead-node-expected.png: Added.
  • fast/events/mouseout-dead-node-expected.txt: Added.
  • fast/events/mouseout-dead-node.html: Added.

WebCore:

Reviewed by Hyatt.



If a node dies while mouse is over it, it is still supposed to receive
mouseout event (wasn't case in Tiger webkit). However this event should
not propagate to any other nodes. This patch matches Firefox behavior in
this respect.

  • dom/EventTargetNode.cpp: (WebCore::EventTargetNode::dispatchGenericEvent):
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r19896 r19897  
     12007-02-27  Antti Koivisto  <antti@apple.com>
     2
     3        Reviewed by Hyatt.
     4       
     5        - test for http://bugs.webkit.org/show_bug.cgi?id=12918
     6        REGRESSION: Google Finance dropdown Flickers
     7        <rdar://4988039>
     8
     9        * fast/events/mouseout-dead-node-expected.checksum: Added.
     10        * fast/events/mouseout-dead-node-expected.png: Added.
     11        * fast/events/mouseout-dead-node-expected.txt: Added.
     12        * fast/events/mouseout-dead-node.html: Added.
     13
    1142007-02-27  Geoffrey Garen  <ggaren@apple.com>
    215
  • trunk/WebCore/ChangeLog

    r19894 r19897  
     12007-02-27  Antti Koivisto  <antti@apple.com>
     2
     3        Reviewed by Hyatt.
     4       
     5        - fix http://bugs.webkit.org/show_bug.cgi?id=12918
     6        REGRESSION: Google Finance dropdown Flickers
     7        <rdar://4988039>
     8       
     9        If a node dies while mouse is over it, it is still supposed to receive
     10        mouseout event (wasn't case in Tiger webkit). However this event should
     11        not propagate to any other nodes. This patch matches Firefox behavior in
     12        this respect.
     13
     14        * dom/EventTargetNode.cpp:
     15        (WebCore::EventTargetNode::dispatchGenericEvent):
     16
    1172007-02-27  Geoffrey Garen  <ggaren@apple.com>
    218
  • trunk/WebCore/dom/EventTargetNode.cpp

    r19681 r19897  
    178178    // work out what nodes to send event to
    179179    DeprecatedPtrList<Node> nodeChain;
    180     Node *n;
    181 
    182     for (n = this; n; n = n->eventParentNode()) {
    183         n->ref();
    184         nodeChain.prepend(n);
     180   
     181    if (inDocument()) {
     182        for (Node* n = this; n; n = n->eventParentNode()) {
     183            n->ref();
     184            nodeChain.prepend(n);
     185        }
     186    } else {
     187        // if node is not in the document just send event to itself
     188        ref();
     189        nodeChain.prepend(this);
    185190    }
    186191   
Note: See TracChangeset for help on using the changeset viewer.