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

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

Issue 2877193002: Prune ComputeVisibleSelectionDeprecated from FrameSelection::ShouldPaintCaret (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/FrameSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
index b83875bc8a3afa35d11ec1c6a226697345a49643..4ce403148d932c83e97691cf067aa2d3a649a0ca 100644
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
@@ -516,7 +516,7 @@ bool FrameSelection::ShouldPaintCaret(const LayoutBlock& block) const {
DCHECK_GE(GetDocument().Lifecycle().GetState(),
DocumentLifecycle::kLayoutClean);
bool result = frame_caret_->ShouldPaintCaret(block);
- DCHECK(!result || (ComputeVisibleSelectionInDOMTreeDeprecated().IsCaret() &&
+ DCHECK(!result || (ComputeVisibleSelectionInDOMTree().IsCaret() &&
ComputeVisibleSelectionInDOMTree().HasEditableStyle()));
return result;
}
« 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