Index: third_party/WebKit/Source/core/editing/LayoutSelection.cpp |
diff --git a/third_party/WebKit/Source/core/editing/LayoutSelection.cpp b/third_party/WebKit/Source/core/editing/LayoutSelection.cpp |
index bde8150398df160f23b3ab508de9e8e66f74e268..7585134d5941b192a27488d56d6015ef6bb8a0e0 100644 |
--- a/third_party/WebKit/Source/core/editing/LayoutSelection.cpp |
+++ b/third_party/WebKit/Source/core/editing/LayoutSelection.cpp |
@@ -322,6 +322,8 @@ static SelectionPaintRange CalcSelectionPaintRange( |
DCHECK(start_layout_object); |
DCHECK(end_layout_object); |
DCHECK(start_layout_object->View() == end_layout_object->View()); |
+ if (!start_layout_object || !end_layout_object) |
+ return SelectionPaintRange(); |
return SelectionPaintRange(start_layout_object, |
start_pos.ComputeEditingOffset(), |