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

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

Issue 2425543003: Ensure clean layout for VisibleSelection::selectionFromContentsOfNode (Closed)
Patch Set: Created 4 years, 2 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 d8d2debe974a38b3a79b9bfe1fdbea8cfccb0f0c..dec9069a6b27e3deba2082ea9774ff3528bfe98f 100644
--- a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
@@ -248,10 +248,6 @@ VisibleSelectionTemplate<Strategy>
VisibleSelectionTemplate<Strategy>::selectionFromContentsOfNode(Node* node) {
DCHECK(!Strategy::editingIgnoresContent(node));
- // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets
tkent 2016/10/17 07:08:16 We should add a DCHECK and/or a comment to ensure
Xiaocheng 2016/10/17 07:36:21 Done.
- // needs to be audited. see http://crbug.com/590369 for more details.
- node->document().updateStyleAndLayoutIgnorePendingStylesheets();
-
typename SelectionTemplate<Strategy>::Builder builder;
builder.collapse(PositionTemplate<Strategy>::firstPositionInNode(node))
.extend(PositionTemplate<Strategy>::lastPositionInNode(node));

Powered by Google App Engine
This is Rietveld 408576698