Re-applied the fix for bug 8835 (REGRESSION: Line moves but selection
[WebKit-https.git] / WebCore / rendering / RootInlineBox.cpp
index 9fabb37081766da046b87d9d7bc8691cb1e734c9..d81066a36171eed6d5bd905b49b36aeb2bb61641 100644 (file)
@@ -121,6 +121,8 @@ void RootInlineBox::adjustPosition(int dx, int dy)
     m_topOverflow += dy;
     m_bottomOverflow += dy;
     m_blockHeight += dy;
+    m_selectionTop += dy;
+    m_selectionBottom += dy;
 }
 
 void RootInlineBox::childRemoved(InlineBox* box)