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

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

Issue 394353002: Replace tests of ASSERT_ENABLED with ENABLE(ASSERT). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 if (frame->isLocalFrame() && toLocalFrame(frame)->document()) 425 if (frame->isLocalFrame() && toLocalFrame(frame)->document())
426 toLocalFrame(frame)->document()->didChangeTimerAlignmentInterval(); 426 toLocalFrame(frame)->document()->didChangeTimerAlignmentInterval();
427 } 427 }
428 } 428 }
429 429
430 double Page::timerAlignmentInterval() const 430 double Page::timerAlignmentInterval() const
431 { 431 {
432 return m_timerAlignmentInterval; 432 return m_timerAlignmentInterval;
433 } 433 }
434 434
435 #if ASSERT_ENABLED 435 #if ENABLE(ASSERT)
436 void Page::checkSubframeCountConsistency() const 436 void Page::checkSubframeCountConsistency() const
437 { 437 {
438 ASSERT(m_subframeCount >= 0); 438 ASSERT(m_subframeCount >= 0);
439 439
440 int subframeCount = 0; 440 int subframeCount = 0;
441 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext() ) 441 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext() )
442 ++subframeCount; 442 ++subframeCount;
443 443
444 ASSERT(m_subframeCount + 1 == subframeCount); 444 ASSERT(m_subframeCount + 1 == subframeCount);
445 } 445 }
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 , spellCheckerClient(0) 654 , spellCheckerClient(0)
655 , storageClient(0) 655 , storageClient(0)
656 { 656 {
657 } 657 }
658 658
659 Page::PageClients::~PageClients() 659 Page::PageClients::~PageClients()
660 { 660 {
661 } 661 }
662 662
663 } // namespace WebCore 663 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698