| Index: third_party/WebKit/Source/core/editing/SelectionEditor.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/SelectionEditor.cpp b/third_party/WebKit/Source/core/editing/SelectionEditor.cpp
|
| index 93189a04f86db3987aa8a1f415e3cbc02d583f41..a90e2b8a9ba48ff18350582caf9609b91b586c8d 100644
|
| --- a/third_party/WebKit/Source/core/editing/SelectionEditor.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/SelectionEditor.cpp
|
| @@ -97,7 +97,7 @@ void SelectionEditor::setVisibleSelection(const VisibleSelection& newSelection,
|
|
|
| void SelectionEditor::setVisibleSelection(const VisibleSelectionInFlatTree& newSelection, FrameSelection::SetSelectionOptions options)
|
| {
|
| - ASSERT(!(options & FrameSelection::DoNotAdjustInFlatTree));
|
| + DCHECK(!(options & FrameSelection::DoNotAdjustInFlatTree));
|
| m_selectionInFlatTree = newSelection;
|
| SelectionAdjuster::adjustSelectionInDOMTree(&m_selection, m_selectionInFlatTree);
|
| }
|
| @@ -863,7 +863,7 @@ DispatchEventResult SelectionEditor::dispatchSelectStart()
|
|
|
| void SelectionEditor::didChangeVisibleSelection()
|
| {
|
| - ASSERT(m_observingVisibleSelection);
|
| + DCHECK(m_observingVisibleSelection);
|
| // Invalidate the logical range when the underlying VisibleSelection has changed.
|
| if (m_logicalRange) {
|
| m_logicalRange->dispose();
|
| @@ -875,7 +875,7 @@ void SelectionEditor::didChangeVisibleSelection()
|
|
|
| void SelectionEditor::startObservingVisibleSelectionChange()
|
| {
|
| - ASSERT(!m_observingVisibleSelection);
|
| + DCHECK(!m_observingVisibleSelection);
|
| m_selection.setChangeObserver(*this);
|
| m_observingVisibleSelection = true;
|
| }
|
|
|