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

Unified Diff: third_party/WebKit/Source/core/editing/SelectionEditor.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/SelectionEditor.cpp
diff --git a/third_party/WebKit/Source/core/editing/SelectionEditor.cpp b/third_party/WebKit/Source/core/editing/SelectionEditor.cpp
index 7d38c7e2e8c82850fc667062453d25067df8ec20..cbf5174bbe79a2e473cd2bfea18c64318f559894 100644
--- a/third_party/WebKit/Source/core/editing/SelectionEditor.cpp
+++ b/third_party/WebKit/Source/core/editing/SelectionEditor.cpp
@@ -375,12 +375,6 @@ bool SelectionEditor::shouldAlwaysUseDirectionalSelection() const {
return frame()->editor().behavior().shouldConsiderSelectionAsDirectional();
}
-void SelectionEditor::updateIfNeeded() {
- // TODO(yosin): We should unify |SelectionEditor::updateIfNeeded()| and
- // |updateCachedVisibleSelectionIfNeeded()|
- updateCachedVisibleSelectionIfNeeded();
-}
-
bool SelectionEditor::needsUpdateVisibleSelection() const {
return m_cacheIsDirty || m_styleVersion != document().styleVersion();
}

Powered by Google App Engine
This is Rietveld 408576698