Index: third_party/WebKit/Source/core/editing/VisibleSelection.cpp |
diff --git a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp |
index 32c09d2b5dd99e83ac0eebf4ed0d8239ee842b72..3463cfc1101aa40f0ad40cb9695ad8957f44c7ec 100644 |
--- a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp |
+++ b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp |
@@ -650,9 +650,7 @@ void VisibleSelectionTemplate< |
// The selection crosses an Editing boundary. This is a |
// programmer error in the editing code. Happy debugging! |
NOTREACHED(); |
- m_base = PositionTemplate<Strategy>(); |
- m_extent = PositionTemplate<Strategy>(); |
- validate(); |
+ *this = VisibleSelectionTemplate<Strategy>(); |
return; |
} |
m_end = previous.deepEquivalent(); |
@@ -688,9 +686,7 @@ void VisibleSelectionTemplate< |
// The selection crosses an Editing boundary. This is a |
// programmer error in the editing code. Happy debugging! |
NOTREACHED(); |
- m_base = PositionTemplate<Strategy>(); |
- m_extent = PositionTemplate<Strategy>(); |
- validate(); |
+ *this = VisibleSelectionTemplate<Strategy>(); |
return; |
} |
m_start = next.deepEquivalent(); |