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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 2831583003: Remove LayoutView from LayoutSelection::commit() (Closed)
Patch Set: update Created 3 years, 8 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/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 36c157898963ef7a9ab91a65703870c6e17a411b..d0cbaae104a69805ba22b75409e6ab2a851fc258 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1454,6 +1454,7 @@ Color LayoutObject::SelectionEmphasisMarkColor(
}
void LayoutObject::SelectionStartEnd(int& start_pos, int& end_pos) const {
+ DCHECK(!View()->NeedsLayout());
GetFrame()->Selection().LayoutSelectionStartEnd(start_pos, end_pos);
}
« no previous file with comments | « third_party/WebKit/Source/core/editing/LayoutSelection.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698