From kde-commits Wed Aug 27 16:57:36 2008 From: Maks Orlovich Date: Wed, 27 Aug 2008 16:57:36 +0000 To: kde-commits Subject: branches/KDE/4.1/kdelibs/khtml/html Message-Id: <1219856256.679017.20516.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=121985626719894 SVN commit 853394 by orlovich: Make sure to update layout, and not just CSS/RenderStyle when querying image width/height because, well, we do need the size. Fixes image data not being up-to-date on load, (#129307) Fixes infinite loop with some forum software (#169844, #166781, most likely #165668, presuming fixed since no non-bt info available) BUG:129307 BUG:169844 BUG:166781 BUG:165668 M +2 -2 html_imageimpl.cpp --- branches/KDE/4.1/kdelibs/khtml/html/html_imageimpl.cpp #853393:853394 @@ -286,7 +286,7 @@ return 0; } - document()->updateRendering(); + document()->updateLayout(); return m_render ? m_render->contentWidth() : getAttribute(ATTR_WIDTH).toInt(); @@ -304,7 +304,7 @@ return 0; } - document()->updateRendering(); + document()->updateLayout(); return m_render ? m_render->contentHeight() : getAttribute(ATTR_HEIGHT).toInt();