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

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

Issue 327323002: Start removing the double-negative !ASSERT_DISABLED (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/page/FocusController.cpp ('k') | Source/core/rendering/LayoutState.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved.
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 if (frame->isLocalFrame() && toLocalFrame(frame)->document()) 413 if (frame->isLocalFrame() && toLocalFrame(frame)->document())
414 toLocalFrame(frame)->document()->didChangeTimerAlignmentInterval(); 414 toLocalFrame(frame)->document()->didChangeTimerAlignmentInterval();
415 } 415 }
416 } 416 }
417 417
418 double Page::timerAlignmentInterval() const 418 double Page::timerAlignmentInterval() const
419 { 419 {
420 return m_timerAlignmentInterval; 420 return m_timerAlignmentInterval;
421 } 421 }
422 422
423 #if !ASSERT_DISABLED 423 #if ASSERT_ENABLED
424 void Page::checkSubframeCountConsistency() const 424 void Page::checkSubframeCountConsistency() const
425 { 425 {
426 ASSERT(m_subframeCount >= 0); 426 ASSERT(m_subframeCount >= 0);
427 427
428 int subframeCount = 0; 428 int subframeCount = 0;
429 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext() ) 429 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext() )
430 ++subframeCount; 430 ++subframeCount;
431 431
432 ASSERT(m_subframeCount + 1 == subframeCount); 432 ASSERT(m_subframeCount + 1 == subframeCount);
433 } 433 }
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 , spellCheckerClient(0) 632 , spellCheckerClient(0)
633 , storageClient(0) 633 , storageClient(0)
634 { 634 {
635 } 635 }
636 636
637 Page::PageClients::~PageClients() 637 Page::PageClients::~PageClients()
638 { 638 {
639 } 639 }
640 640
641 } // namespace WebCore 641 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/FocusController.cpp ('k') | Source/core/rendering/LayoutState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698