Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(484)

Side by Side Diff: third_party/WebKit/Source/core/editing/commands/EditingState.cpp

Issue 1878473002: ASSERT -> DCHECK in core/editing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Output info for some DCHECKs, add TODOs. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 {
11 } 11 }
12 12
13 EditingState::~EditingState() 13 EditingState::~EditingState()
14 { 14 {
15 } 15 }
16 16
17 void EditingState::abort() 17 void EditingState::abort()
18 { 18 {
19 ASSERT(!m_isAborted); 19 DCHECK(!m_isAborted);
20 m_isAborted = true; 20 m_isAborted = true;
21 } 21 }
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 ENABLE(ASSERT)
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698