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

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

Issue 2864613004: Prune ComputeVisibleSelectionInDOMTreeDeprecated from IsCaretAtStartOfWrappedLine (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | 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/Editor.cpp
diff --git a/third_party/WebKit/Source/core/editing/Editor.cpp b/third_party/WebKit/Source/core/editing/Editor.cpp
index 8207eb6381b2216ff33bb1f6d3992c1edec8bb11..f0fdad4a57ac764895650945a0ee87797b3eedb9 100644
--- a/third_party/WebKit/Source/core/editing/Editor.cpp
+++ b/third_party/WebKit/Source/core/editing/Editor.cpp
@@ -228,12 +228,12 @@ EditorClient& Editor::Client() const {
}
static bool IsCaretAtStartOfWrappedLine(const FrameSelection& selection) {
- if (!selection.ComputeVisibleSelectionInDOMTreeDeprecated().IsCaret())
+ if (!selection.ComputeVisibleSelectionInDOMTree().IsCaret())
return false;
if (selection.GetSelectionInDOMTree().Affinity() != TextAffinity::kDownstream)
return false;
const Position& position =
- selection.ComputeVisibleSelectionInDOMTreeDeprecated().Start();
+ selection.ComputeVisibleSelectionInDOMTree().Start();
return !InSameLine(PositionWithAffinity(position, TextAffinity::kUpstream),
PositionWithAffinity(position, TextAffinity::kDownstream));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698