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

Side by Side Diff: third_party/WebKit/Source/core/page/Page.cpp

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: Created 3 years, 11 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 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All
3 * Rights Reserved. 3 * Rights Reserved.
4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. 4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved.
5 * (http://www.torchmobile.com/) 5 * (http://www.torchmobile.com/)
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 m_useCounter(pageClients.chromeClient && 128 m_useCounter(pageClients.chromeClient &&
129 pageClients.chromeClient->isSVGImageChromeClient() 129 pageClients.chromeClient->isSVGImageChromeClient()
130 ? UseCounter::SVGImageContext 130 ? UseCounter::SVGImageContext
131 : UseCounter::DefaultContext), 131 : UseCounter::DefaultContext),
132 m_openedByDOM(false), 132 m_openedByDOM(false),
133 m_tabKeyCyclesThroughElements(true), 133 m_tabKeyCyclesThroughElements(true),
134 m_suspended(false), 134 m_suspended(false),
135 m_deviceScaleFactor(1), 135 m_deviceScaleFactor(1),
136 m_visibilityState(PageVisibilityStateVisible), 136 m_visibilityState(PageVisibilityStateVisible),
137 m_isCursorVisible(true), 137 m_isCursorVisible(true),
138 #if ENABLE(ASSERT)
139 m_isPainting(false),
140 #endif
141 m_frameHost(FrameHost::create(*this)) { 138 m_frameHost(FrameHost::create(*this)) {
142 ASSERT(m_editorClient); 139 ASSERT(m_editorClient);
143 140
144 ASSERT(!allPages().contains(this)); 141 ASSERT(!allPages().contains(this));
145 allPages().add(this); 142 allPages().add(this);
146 } 143 }
147 144
148 Page::~Page() { 145 Page::~Page() {
149 // willBeDestroyed() must be called before Page destruction. 146 // willBeDestroyed() must be called before Page destruction.
150 ASSERT(!m_mainFrame); 147 ASSERT(!m_mainFrame);
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 : chromeClient(nullptr), 541 : chromeClient(nullptr),
545 contextMenuClient(nullptr), 542 contextMenuClient(nullptr),
546 editorClient(nullptr), 543 editorClient(nullptr),
547 spellCheckerClient(nullptr) {} 544 spellCheckerClient(nullptr) {}
548 545
549 Page::PageClients::~PageClients() {} 546 Page::PageClients::~PageClients() {}
550 547
551 template class CORE_TEMPLATE_EXPORT Supplement<Page>; 548 template class CORE_TEMPLATE_EXPORT Supplement<Page>;
552 549
553 } // namespace blink 550 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698