| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/editing/commands/EditingState.h" | 5 #include "core/editing/commands/EditingState.h" |
| 6 | 6 |
| 7 namespace blink { | 7 namespace blink { |
| 8 | 8 |
| 9 EditingState::EditingState() | 9 EditingState::EditingState() |
| 10 { | 10 { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 // --- | 23 // --- |
| 24 IgnorableEditingAbortState::IgnorableEditingAbortState() | 24 IgnorableEditingAbortState::IgnorableEditingAbortState() |
| 25 { | 25 { |
| 26 } | 26 } |
| 27 | 27 |
| 28 IgnorableEditingAbortState::~IgnorableEditingAbortState() | 28 IgnorableEditingAbortState::~IgnorableEditingAbortState() |
| 29 { | 29 { |
| 30 } | 30 } |
| 31 | 31 |
| 32 #if ENABLE(ASSERT) | 32 #if DCHECK_IS_ON() |
| 33 // --- | 33 // --- |
| 34 | 34 |
| 35 NoEditingAbortChecker::NoEditingAbortChecker(const char* file, int line) | 35 NoEditingAbortChecker::NoEditingAbortChecker(const char* file, int line) |
| 36 : m_file(file) | 36 : m_file(file) |
| 37 , m_line(line) { } | 37 , m_line(line) { } |
| 38 | 38 |
| 39 NoEditingAbortChecker::~NoEditingAbortChecker() | 39 NoEditingAbortChecker::~NoEditingAbortChecker() |
| 40 { | 40 { |
| 41 DCHECK_AT(!m_editingState.isAborted(), m_file, m_line) << "The operation sho
uld not have been aborted."; | 41 DCHECK_AT(!m_editingState.isAborted(), m_file, m_line) << "The operation sho
uld not have been aborted."; |
| 42 } | 42 } |
| 43 | 43 |
| 44 #endif | 44 #endif |
| 45 | 45 |
| 46 } // namespace blink | 46 } // namespace blink |
| OLD | NEW |