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

List:       kde-commits
Subject:    branches/KDE/4.0/kdelibs/khtml/xml
From:       Harri Porten <porten () kde ! org>
Date:       2008-04-20 22:54:43
Message-ID: 1208732083.314647.4625.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 799272 by porten:

Merged revision 799271:
Applied Allen's patch to fix update of the :empty pseudo-class.
Now that we also support replaceWholeText() we pass Acid3 test 38.

 M  +7 -0      dom_textimpl.cpp  


--- branches/KDE/4.0/kdelibs/khtml/xml/dom_textimpl.cpp #799271:799272
@@ -205,6 +205,13 @@
 {
     if (parentNode())
         parentNode()->childrenChanged();
+    if ((str->length() == 0) != (prevValue->length() == 0)) {
+       // changes in emptiness triggers changes in :empty selector
+       if (parentNode() && parentNode()->isElementNode())
+           parentNode()->backwardsStructureChanged();
+       // ### to fully support dynamic changes to :contains selector
+       // backwardsStructureChanged should be called for all changes
+    }
     if (!getDocument()->hasListenerType(DocumentImpl::DOMCHARACTERDATAMODIFIED_LISTENER))
         return;
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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