Index: Source/WebCore/editing/FrameSelection.cpp |
=================================================================== |
--- Source/WebCore/editing/FrameSelection.cpp (revision 96732) |
+++ Source/WebCore/editing/FrameSelection.cpp (working copy) |
@@ -220,7 +220,7 @@ |
m_selection = s; |
setCaretRectNeedsUpdate(); |
- if (!s.isNone()) |
+ if (!s.isNone() && !(options & DoNotSetFocus)) |
setFocusedNodeIfNeeded(); |
updateAppearance(); |
@@ -326,7 +326,7 @@ |
clearRenderViewSelection(m_selection.start()); |
if (clearDOMTreeSelection) |
- setSelection(VisibleSelection(), 0); |
+ setSelection(VisibleSelection(), DoNotSetFocus); |
} |
enum EndPointType { EndPointIsStart, EndPointIsEnd }; |
@@ -377,7 +377,7 @@ |
newSelection.setWithoutValidation(end, start); |
} |
m_frame->document()->updateLayout(); |
- setSelection(newSelection, 0); |
+ setSelection(newSelection, DoNotSetFocus); |
return; |
} |