Fix for 3629816, caret in wrong position when deleting <br>s on lines by themselves...
[WebKit-https.git] / WebCore / khtml / rendering / render_flow.cpp
index 317466e83b42af678c4632c966e88fbb00809aec..c04e687723a34e46214fcebc7d162111b8916010 100644 (file)
@@ -211,7 +211,7 @@ void RenderFlow::dirtyLinesFromChangedChild(RenderObject* child)
     // line box by examining our siblings.  If we didn't find a line box, then use our 
     // parent's first line box.
     RootInlineBox* box = 0;
-    for (RenderObject* curr = child->previousSibling(); curr; curr = curr->previousSibling()) {
+    for (RenderObject* curr = child; curr; curr = curr->previousSibling()) {
         if (curr->isFloatingOrPositioned())
             continue;