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

List:       kde-commits
Subject:    branches/KDE/3.5/kdelibs/khtml/html
From:       Maks Orlovich <maksim () kde ! org>
Date:       2005-08-09 20:28:52
Message-ID: 1123619332.964427.17708.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 444340 by orlovich:

A little cleanup, potentially fixing obscure crashes


 M  +2 -4      html_formimpl.cpp  


--- branches/KDE/3.5/kdelibs/khtml/html/html_formimpl.cpp #444339:444340
@@ -1352,11 +1352,9 @@
         m_size = attr->val() ? attr->val()->toInt() : 20;
         break;
     case ATTR_ALT:
-        // TODO: Webcore has:
-        // if (m_render && m_type == IMAGE)
-        //   static_cast<RenderImage*>(m_render)->updateAltText();
     case ATTR_SRC:
-        if (m_render && m_type == IMAGE) m_render->updateFromElement();
+        if (m_type == IMAGE)
+            setChanged();
         break;
     case ATTR_USEMAP:
         // ### ignore for the moment
[prev in list] [next in list] [prev in thread] [next in thread] 

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