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

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

Issue 2082503003: ASSERT -> DCHECK conversions in core/editing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 {
(...skipping 11 matching lines...) Expand all
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698