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

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

Issue 2920733002: Rename VisibleSelection::end() to End() (Closed)
Patch Set: 2017-06-01T18:31:38 Created 3 years, 7 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
Index: third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp
diff --git a/third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp b/third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp
index 6d2ba19187f67c61c8bb8dd1a77109f3e034fd61..2ed10f7090cccc9eb40b19e40d567ce0a42a792d 100644
--- a/third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp
+++ b/third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp
@@ -159,24 +159,24 @@ void SelectionAdjuster::AdjustSelectionToAvoidCrossingShadowBoundaries(
DCHECK(selection->Base().IsNotNull());
DCHECK(selection->Extent().IsNotNull());
DCHECK(selection->Start().IsNotNull());
- DCHECK(selection->end().IsNotNull());
+ DCHECK(selection->End().IsNotNull());
// TODO(hajimehoshi): Checking treeScope is wrong when a node is
// distributed, but we leave it as it is for backward compatibility.
if (selection->Start().AnchorNode()->GetTreeScope() ==
- selection->end().AnchorNode()->GetTreeScope())
+ selection->End().AnchorNode()->GetTreeScope())
return;
if (selection->IsBaseFirst()) {
const Position& new_end = AdjustPositionForEnd(
- selection->end(), selection->Start().ComputeContainerNode());
+ selection->End(), selection->Start().ComputeContainerNode());
selection->extent_ = new_end;
selection->end_ = new_end;
return;
}
const Position& new_start = AdjustPositionForStart(
- selection->Start(), selection->end().ComputeContainerNode());
+ selection->Start(), selection->End().ComputeContainerNode());
selection->extent_ = new_start;
selection->start_ = new_start;
}
@@ -188,7 +188,7 @@ void SelectionAdjuster::AdjustSelectionToAvoidCrossingShadowBoundaries(
VisibleSelectionInFlatTree* selection) {
Node* const shadow_host_start =
EnclosingShadowHostForStart(selection->Start());
- Node* const shadow_host_end = EnclosingShadowHostForEnd(selection->end());
+ Node* const shadow_host_end = EnclosingShadowHostForEnd(selection->End());
if (shadow_host_start == shadow_host_end)
return;
@@ -196,7 +196,7 @@ void SelectionAdjuster::AdjustSelectionToAvoidCrossingShadowBoundaries(
Node* const shadow_host =
shadow_host_start ? shadow_host_start : shadow_host_end;
const PositionInFlatTree& new_end =
- AdjustPositionInFlatTreeForEnd(selection->end(), shadow_host);
+ AdjustPositionInFlatTreeForEnd(selection->End(), shadow_host);
selection->extent_ = new_end;
selection->end_ = new_end;
return;

Powered by Google App Engine
This is Rietveld 408576698