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

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

Issue 2719013003: Remove a redundant layout update from DragCaret.cpp (Closed)
Patch Set: 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
« 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/DragCaret.cpp
diff --git a/third_party/WebKit/Source/core/editing/DragCaret.cpp b/third_party/WebKit/Source/core/editing/DragCaret.cpp
index 60636c51dcc60fff78d60c86d8296ce2b35554d7..e7aeb22365f0151cfc4cf6d3f1d3c19ca564193c 100644
--- a/third_party/WebKit/Source/core/editing/DragCaret.cpp
+++ b/third_party/WebKit/Source/core/editing/DragCaret.cpp
@@ -72,10 +72,6 @@ void DragCaret::setCaretPosition(const PositionWithAffinity& position) {
document = &node->document();
setContext(document);
}
- if (!m_position.isNull()) {
- DCHECK(!m_position.isOrphan());
- document->updateStyleAndLayoutTree();
- }
}
void DragCaret::nodeChildrenWillBeRemoved(ContainerNode& container) {
« 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