Fix for repainting glitch on mezzoblue.com

David Hyatt hyatt at apple.com
Tue Sep 2 11:46:44 CEST 2003


Here's an easy fix for a math error I made in the repaint method for 
RenderFlows.  This showed up when you moved the mouse up the link list 
(not down) on the right-hand-side of mezzoblue.com.  It also happened 
on the CSS pages on w3.org.

Index: khtml/rendering/render_flow.cpp
===================================================================
RCS file: 
/local/home/cvs/Labyrinth/WebCore/khtml/rendering/render_flow.cpp,v
retrieving revision 1.107
diff -u -p -r1.107 khtml/rendering/render_flow.cpp
--- khtml/rendering/render_flow.cpp     2003/08/11 23:41:02     1.107
+++ khtml/rendering/render_flow.cpp     2003/09/02 17:44:16
@@ -250,7 +250,8 @@ void RenderFlow::repaint(bool immediate)
          if (firstLineBox() && firstLineBox()->topOverflow() < 0) {
              int ow = style() ? style()->outlineWidth() : 0;
              repaintRectangle(-ow, -ow+firstLineBox()->topOverflow(),
-                             overflowWidth(false)+ow*2, 
overflowHeight(false)+ow*2, immediate);
+                             overflowWidth(false)+ow*2,
+                             
overflowHeight(false)+ow*2-firstLineBox()->topOverflow(), immediate);
          }
          else
              return RenderBox::repaint(immediate);




More information about the Khtml-devel mailing list