Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: third_party/WebKit/Source/core/editing/VisibleSelection.cpp

Issue 2761963002: CANCELLED Merge SelectionAdjuster into VisibleSelection part 1 (Closed)
Patch Set: Fix typo Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/editing/VisibleSelection.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 16e1ebd73ce8071fbeea9747e67769126d56093e..7c92aedaa22475018ccdb02c82e6ae8896b64974 100644
--- a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
@@ -535,7 +535,15 @@ void VisibleSelectionTemplate<
Strategy>::adjustSelectionToAvoidCrossingShadowBoundaries() {
if (m_base.isNull() || m_start.isNull() || m_base.isNull())
return;
- SelectionAdjuster::adjustSelectionToAvoidCrossingShadowBoundaries(this);
+ std::pair<AdjustDirection, PositionTemplate<Strategy>> adjustment =
+ adjustmentToAvoidCrossingShadowBoundaries(*this);
+ if (adjustment.first == AdjustDirection::kAdjustNone)
+ return;
+ if (adjustment.first == AdjustDirection::kAdjustStart)
+ m_start = adjustment.second;
+ else
+ m_end = adjustment.second;
+ m_extent = adjustment.second;
}
static Element* lowestEditableAncestor(Node* node) {
« no previous file with comments | « third_party/WebKit/Source/core/editing/VisibleSelection.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698