| 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 2ac51589d5f179a5bf9b0f515cdea577666ddcc0..3937c4b30e50d36b78e26c4a6de631abbc8e5326 100644
|
| --- a/third_party/WebKit/Source/core/editing/SelectionEditor.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/SelectionEditor.cpp
|
| @@ -102,7 +102,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);
|
| }
|
| @@ -868,7 +868,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();
|
| @@ -880,7 +880,7 @@ void SelectionEditor::didChangeVisibleSelection()
|
|
|
| void SelectionEditor::startObservingVisibleSelectionChange()
|
| {
|
| - ASSERT(!m_observingVisibleSelection);
|
| + DCHECK(!m_observingVisibleSelection);
|
| m_selection.setChangeObserver(*this);
|
| m_observingVisibleSelection = true;
|
| }
|
|
|