Fix the crash in the layout tests caused by my recent selection changes. Simply...
[WebKit-https.git] / WebCore / khtml / rendering / render_object.cpp
index 28b30e087f90055daceb4c1f6c64c0da30381536..2a2dcb78ab0e035c2cc29612fad8b41f6c957f9d 100644 (file)
@@ -151,7 +151,6 @@ m_inline( true ),
 m_replaced( false ),
 m_mouseInside( false ),
 m_isDragging( false ),
-m_isSelectionBorder( false ),
 m_hasOverflowClip(false)
 {
 }
@@ -1685,6 +1684,12 @@ RenderObject *RenderObject::container() const
     return o;
 }
 
+bool RenderObject::isSelectionBorder() const
+{
+    SelectionState st = selectionState();
+    return st == SelectionStart || st == SelectionEnd || st == SelectionBoth;
+}
+
 #if 0
 static void checkFloats(RenderObject* o, RenderObject* f)
 {