[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/khtml/xml
From:       David Faure <faure () kde ! org>
Date:       2004-10-11 18:01:31
Message-ID: 20041011180131.A1AF716C0B () office ! kde ! org
[Download RAW message or body]

CVS commit by faure: 

Better fix for #90750. test_regression rocks! (eventhandler.js showed a failure in link 3)


  M +4 -4      dom_nodeimpl.cpp   1.242


--- kdelibs/khtml/xml/dom_nodeimpl.cpp  #1.241:1.242
@@ -429,4 +429,5 @@ void NodeImpl::dispatchGenericEvent( Eve
     // dispatch to the actual target node
     it.toLast();
+    NodeImpl* propagationSentinel = 0;
     if (!evt->propagationStopped()) {
         evt->setEventPhase(Event::AT_TARGET);
@@ -435,11 +436,10 @@ void NodeImpl::dispatchGenericEvent( Eve
         if (!evt->propagationStopped())
             it.current()->handleLocalEvents(evt,false);
+        else
+            propagationSentinel = it.current();
     }
     --it;
 
-    if (evt->bubbles() && !evt->propagationStopped()) {
-        evt->stopPropagation(false);
-        NodeImpl* propagationSentinel = 0;
-
+    if (evt->bubbles()) {
         evt->setEventPhase(Event::BUBBLING_PHASE);
         for (; it.current() && !evt->propagationStopped(); --it) {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic