| 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 cd5cc26b30d141b990834a5611edc212cd91e2f3..914c8f64776ab113461c172613f07e1192af82b1 100644
|
| --- a/third_party/WebKit/Source/core/editing/LayoutSelection.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/LayoutSelection.cpp
|
| @@ -148,6 +148,8 @@ void LayoutSelection::SetSelection(
|
| selection_end_ == end && selection_end_pos_ == end_pos)
|
| return;
|
|
|
| + DCHECK(frame_selection_->GetDocument().GetLayoutView()->GetFrameView());
|
| +
|
| // Record the old selected objects. These will be used later when we compare
|
| // against the new selected objects.
|
| int old_start_pos = selection_start_pos_;
|
| @@ -256,10 +258,6 @@ void LayoutSelection::SetSelection(
|
| exploring_backwards);
|
| }
|
|
|
| - // TODO(yoichio): DCHECK(frame_selection_->,,,->GetFrameView());
|
| - if (!frame_selection_->GetDocument().GetLayoutView()->GetFrameView())
|
| - return;
|
| -
|
| // Have any of the old selected objects changed compared to the new selection?
|
| for (SelectedObjectMap::iterator i = old_selected_objects.begin();
|
| i != old_objects_end; ++i) {
|
|
|