Fix for 3629816, caret in wrong position when deleting <br>s on lines by themselves...
[WebKit-https.git] / WebCore / khtml / rendering / render_br.cpp
index 2f993f1f7ad1dfc99e3913e2a433953a89b5e35b..62d908f52e222ae2529cf0763a45a38046ef5cc3 100644 (file)
@@ -35,6 +35,12 @@ RenderBR::~RenderBR()
 {
 }
 
+void RenderBR::setPos(int xPos, int yPos)
+{
+    m_x = xPos;
+    m_y = yPos;
+}
+
 InlineBox* RenderBR::createInlineBox(bool makePlaceholder, bool isRootLineBox, bool isOnlyRun)
 {
     // We only make a box for a <br> if we are on a line by ourself or in strict mode