diff options
Diffstat (limited to 'Source/WebCore/rendering/RootInlineBox.cpp')
-rw-r--r-- | Source/WebCore/rendering/RootInlineBox.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebCore/rendering/RootInlineBox.cpp b/Source/WebCore/rendering/RootInlineBox.cpp index a26025981..6c9330362 100644 --- a/Source/WebCore/rendering/RootInlineBox.cpp +++ b/Source/WebCore/rendering/RootInlineBox.cpp @@ -499,6 +499,10 @@ RenderObject::SelectionState RootInlineBox::selectionState() ((boxState == RenderObject::SelectionStart || boxState == RenderObject::SelectionEnd) && (state == RenderObject::SelectionNone || state == RenderObject::SelectionInside))) state = boxState; + else if (boxState == RenderObject::SelectionNone && state == RenderObject::SelectionStart) { + // We are past the end of the selection. + state = RenderObject::SelectionBoth; + } if (state == RenderObject::SelectionBoth) break; } |