| Index: third_party/WebKit/Source/core/editing/PendingSelection.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/PendingSelection.cpp b/third_party/WebKit/Source/core/editing/PendingSelection.cpp
|
| index 02afe9e71686bba20f36d895c9b836a3013cc6ef..a3a42151e0c1b7afc0a8e0c372280a8143cd6f4c 100644
|
| --- a/third_party/WebKit/Source/core/editing/PendingSelection.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/PendingSelection.cpp
|
| @@ -86,7 +86,7 @@ void PendingSelection::commit(LayoutView& layoutView)
|
| {
|
| if (!hasPendingSelection())
|
| return;
|
| - ASSERT(!layoutView.needsLayout());
|
| + DCHECK(!layoutView.needsLayout());
|
| m_hasPendingSelection = false;
|
|
|
| const VisibleSelectionInFlatTree& originalSelection = m_frameSelection->visibleSelection<EditingInFlatTreeStrategy>();
|
| @@ -130,7 +130,8 @@ void PendingSelection::commit(LayoutView& layoutView)
|
| LayoutObject* endLayoutObject = endPos.anchorNode()->layoutObject();
|
| if (!startLayoutObject || !endLayoutObject)
|
| return;
|
| - ASSERT(layoutView == startLayoutObject->view() && layoutView == endLayoutObject->view());
|
| + DCHECK(layoutView == startLayoutObject->view());
|
| + DCHECK(layoutView == endLayoutObject->view());
|
| layoutView.setSelection(startLayoutObject, startPos.computeEditingOffset(), endLayoutObject, endPos.computeEditingOffset());
|
| }
|
|
|
|
|