Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index 63f578f15337215eda3f7c9afb4b18a27296223f..467e4a5cf00081153e2239b8e3f684314fd7d117 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -2150,11 +2150,8 @@ void Element::updateFocusAppearance(bool /*restorePreviousSelection*/) |
// FIXME: We should restore the previous selection if there is one. |
VisibleSelection newSelection = VisibleSelection(firstPositionInOrBeforeNode(this), DOWNSTREAM); |
- |
- if (frame->selection().shouldChangeSelection(newSelection)) { |
- frame->selection().setSelection(newSelection); |
- frame->selection().revealSelection(); |
- } |
+ frame->selection().setSelection(newSelection); |
+ frame->selection().revealSelection(); |
} else if (renderer() && !renderer()->isWidget()) |
renderer()->scrollRectToVisible(boundingBox()); |
} |