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

List:       kde-commits
Subject:    branches/KDE/3.5/kdelibs/khtml/html
From:       Germain Garand <germain () ebooksfrance ! com>
Date:       2006-08-24 13:34:09
Message-ID: 1156426449.782759.11160.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 576638 by ggarand:

"make sure to call setChanged when an anchor changes
 from not being a link to being a link (and vice versa)."

WC/-r15834/#10349/ 
"Anchor elements with dynamically created HREF attributes do not update their style"

adapted from patch by David Hyatt  <hyatt@apple.com>



 M  +3 -0      html_inlineimpl.cpp  


--- branches/KDE/3.5/kdelibs/khtml/html/html_inlineimpl.cpp #576637:576638
@@ -175,8 +175,11 @@
     switch(attr->id())
     {
     case ATTR_HREF:
+        bool hadAnchor = m_hasAnchor;
         m_hasAnchor = attr->val() != 0;
         getDocument()->incDOMTreeVersion();
+        if (hadAnchor != m_hasAnchor)
+            setChanged();
         break;
     case ATTR_TARGET:
         m_hasTarget = attr->val() != 0;
[prev in list] [next in list] [prev in thread] [next in thread] 

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