Fix for 3735084 and 3737209, when you can find no line boxes in your previous siblin...
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Jul 2004 17:58:01 +0000 (17:58 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Jul 2004 17:58:01 +0000 (17:58 +0000)
should be the *first* line box and not the last.

        Reviewed by kocienda

        * khtml/rendering/render_flow.cpp:
        (RenderFlow::dirtyLinesFromChangedChild):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7114 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/khtml/rendering/render_flow.cpp

index 80e2d5b..5ffac1e 100644 (file)
@@ -1,3 +1,13 @@
+2004-07-23  David Hyatt  <hyatt@apple.com>
+
+       Fix for 3735084 and 3737209, when you can find no line boxes in your previous sibling, the line box to dirty
+       should be the *first* line box and not the last.
+       
+        Reviewed by kocienda
+
+        * khtml/rendering/render_flow.cpp:
+        (RenderFlow::dirtyLinesFromChangedChild):
+
 2004-07-23  Ken Kocienda  <kocienda@apple.com>
 
         Reviewed by John
index ab6021a..baceafe 100644 (file)
@@ -241,7 +241,7 @@ void RenderFlow::dirtyLinesFromChangedChild(RenderObject* child, bool adding)
             break;
     }
     if (!box)
-        box = lastLineBox()->root();
+        box = firstLineBox()->root();
 
     // If we found a line box, then dirty it.
     if (box) {