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

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

Issue 2709973005: Get rid of useless function VisibleSelection::updateIfNeeded() (Closed)
Patch Set: 2017-02-25T10:01:23 Do not remove FrameSelection::updateIfNeeded() 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/VisibleSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
index 60dde5079917b1ce9e4f93e082fbf2c60fe295b9..32c09d2b5dd99e83ac0eebf4ed0d8239ee842b72 100644
--- a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
@@ -724,19 +724,6 @@ Element* VisibleSelectionTemplate<Strategy>::rootEditableElement() const {
}
template <typename Strategy>
-void VisibleSelectionTemplate<Strategy>::updateIfNeeded() {
- Document* document = m_base.document();
- if (!document)
- return;
- DCHECK(!document->needsLayoutTreeUpdate());
- const bool hasTrailingWhitespace = m_hasTrailingWhitespace;
- validate(m_granularity);
- if (!hasTrailingWhitespace)
- return;
- appendTrailingWhitespace();
-}
-
-template <typename Strategy>
static bool equalSelectionsAlgorithm(
const VisibleSelectionTemplate<Strategy>& selection1,
const VisibleSelectionTemplate<Strategy>& selection2) {

Powered by Google App Engine
This is Rietveld 408576698