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

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

Issue 2712223002: Get rid of redundant functions updateIfNeeded() in FrameSelection and SelectionEditor (Closed)
Patch Set: 2017-02-27T11:10:27 Remove updateIfNeeded() from FrameSeleciton.h Created 3 years, 10 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/FrameSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
index 791876c4c3587624b89d3f70758fba01ff29f22c..de34916614b35d263230620fbca35d9e65f60208 100644
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
@@ -1151,11 +1151,6 @@ void FrameSelection::moveRangeSelection(const VisiblePosition& basePosition,
CursorAlignOnScroll::IfNeeded, granularity);
}
-void FrameSelection::updateIfNeeded() {
- DCHECK(!m_frame->document()->needsLayoutTreeUpdate());
- m_selectionEditor->updateIfNeeded();
-}
-
void FrameSelection::setCaretVisible(bool caretIsVisible) {
m_frameCaret->setCaretVisibility(caretIsVisible ? CaretVisibility::Visible
: CaretVisibility::Hidden);
« no previous file with comments | « third_party/WebKit/Source/core/editing/FrameSelection.h ('k') | third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698