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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 9985fcf17ee6f5096f710bf35ea8f955a09db7b3..440e4e34926cb33e1ecc544c5ab81e3c699f757d 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -178,9 +178,6 @@ FrameView::FrameView(LocalFrame& frame)
m_layoutSizeFixedToFrameSize(true),
m_didScrollTimer(this, &FrameView::didScrollTimerFired),
m_needsUpdateWidgetGeometries(false),
-#if ENABLE(ASSERT)
- m_hasBeenDisposed(false),
-#endif
m_horizontalScrollbarMode(ScrollbarAuto),
m_verticalScrollbarMode(ScrollbarAuto),
m_horizontalScrollbarLock(false),
@@ -369,7 +366,7 @@ void FrameView::dispose() {
if (ownerElement && ownerElement->ownedWidget() == this)
ownerElement->setWidget(nullptr);
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
m_hasBeenDisposed = true;
#endif
}

Powered by Google App Engine
This is Rietveld 408576698