| 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 3beb0274d57c55771ddea0e7a79747ee84b50166..6791a46b05dc91a2a0745b149e667e521505bad5 100644
|
| --- a/third_party/WebKit/Source/core/editing/LayoutSelection.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/LayoutSelection.cpp
|
| @@ -318,6 +318,11 @@ void LayoutSelection::ClearSelection() {
|
|
|
| static SelectionPaintRange CalcSelectionPaintRange(
|
| const FrameSelection& frame_selection) {
|
| + const SelectionInDOMTree& selection_in_dom =
|
| + frame_selection.GetSelectionInDOMTree();
|
| + if (selection_in_dom.IsNone())
|
| + return SelectionPaintRange();
|
| +
|
| const VisibleSelectionInFlatTree& original_selection =
|
| frame_selection.ComputeVisibleSelectionInFlatTree();
|
| // Construct a new VisibleSolution, since visibleSelection() is not
|
|
|