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); |
} |