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

List:       kde-commits
Subject:    KDE/kdelibs/khtml/rendering
From:       Germain Garand <germain () ebooksfrance ! org>
Date:       2010-02-22 19:12:32
Message-ID: 1266865952.487111.910.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1094432 by ggarand:

avoid doing any unneeded work in scrollToOffset when the offset ends up
being identical to the one we already have.

 M  +3 -0      render_layer.cpp  


--- trunk/KDE/kdelibs/khtml/rendering/render_layer.cpp #1094431:1094432
@@ -716,6 +716,9 @@
         if (y > maxY) y = maxY;
     }
 
+    if ((m_scrollX == x - m_scrollXOrigin) && m_scrollY == y)
+        return; // nothing to do
+
     // FIXME: Eventually, we will want to perform a blit.  For now never
     // blit, since the check for blitting is going to be very
     // complicated (since it will involve testing whether our layer
[prev in list] [next in list] [prev in thread] [next in thread] 

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