Index: Source/core/editing/FrameSelection.cpp |
diff --git a/Source/core/editing/FrameSelection.cpp b/Source/core/editing/FrameSelection.cpp |
index 4177bbf1a05affb75df83edf94f8131e390afc03..851fda637deb75c24fe881981b0fa60e4fe9693c 100644 |
--- a/Source/core/editing/FrameSelection.cpp |
+++ b/Source/core/editing/FrameSelection.cpp |
@@ -197,11 +197,12 @@ void FrameSelection::setNonDirectionalSelectionIfNeeded(const VisibleSelection& |
VisiblePosition base = m_originalBase.isNotNull() ? m_originalBase : newSelection.visibleBase(); |
VisiblePosition newBase = base; |
- VisiblePosition newExtent = newSelection.visibleExtent(); |
+ VisiblePosition extent = newSelection.visibleExtent(); |
+ VisiblePosition newExtent = extent; |
if (endpointsAdjustmentMode == AdjustEndpointsAtBidiBoundary) |
adjustEndpointsAtBidiBoundary(newBase, newExtent); |
- if (newBase != base || newExtent != newSelection.visibleExtent()) { |
+ if (newBase != base || newExtent != extent) { |
m_originalBase = base; |
newSelection.setBase(newBase); |
newSelection.setExtent(newExtent); |