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

Side by Side Diff: Source/core/frame/LocalDOMWindow.cpp

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed config.gni. Minor cleanups. 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, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 return false; 322 return false;
323 FrameHost* host = frame->host(); 323 FrameHost* host = frame->host();
324 if (!host) 324 if (!host)
325 return false; 325 return false;
326 return host->chrome().canRunModalNow(); 326 return host->chrome().canRunModalNow();
327 } 327 }
328 328
329 LocalDOMWindow::LocalDOMWindow(LocalFrame& frame) 329 LocalDOMWindow::LocalDOMWindow(LocalFrame& frame)
330 : FrameDestructionObserver(&frame) 330 : FrameDestructionObserver(&frame)
331 , m_shouldPrintWhenFinishedLoading(false) 331 , m_shouldPrintWhenFinishedLoading(false)
332 #if ASSERT_ENABLED 332 #if ENABLE(ASSERT)
333 , m_hasBeenReset(false) 333 , m_hasBeenReset(false)
334 #endif 334 #endif
335 { 335 {
336 ScriptWrappable::init(this); 336 ScriptWrappable::init(this);
337 } 337 }
338 338
339 void LocalDOMWindow::clearDocument() 339 void LocalDOMWindow::clearDocument()
340 { 340 {
341 if (!m_document) 341 if (!m_document)
342 return; 342 return;
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 m_statusbar = nullptr; 599 m_statusbar = nullptr;
600 m_toolbar = nullptr; 600 m_toolbar = nullptr;
601 m_console = nullptr; 601 m_console = nullptr;
602 m_navigator = nullptr; 602 m_navigator = nullptr;
603 m_performance = nullptr; 603 m_performance = nullptr;
604 m_location = nullptr; 604 m_location = nullptr;
605 m_media = nullptr; 605 m_media = nullptr;
606 m_sessionStorage = nullptr; 606 m_sessionStorage = nullptr;
607 m_localStorage = nullptr; 607 m_localStorage = nullptr;
608 m_applicationCache = nullptr; 608 m_applicationCache = nullptr;
609 #if ASSERT_ENABLED 609 #if ENABLE(ASSERT)
610 m_hasBeenReset = true; 610 m_hasBeenReset = true;
611 #endif 611 #endif
612 } 612 }
613 613
614 bool LocalDOMWindow::isCurrentlyDisplayedInFrame() const 614 bool LocalDOMWindow::isCurrentlyDisplayedInFrame() const
615 { 615 {
616 return m_frame && m_frame->domWindow() == this && m_frame->host(); 616 return m_frame && m_frame->domWindow() == this && m_frame->host();
617 } 617 }
618 618
619 int LocalDOMWindow::orientation() const 619 int LocalDOMWindow::orientation() const
(...skipping 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1942 visitor->trace(m_localStorage); 1942 visitor->trace(m_localStorage);
1943 visitor->trace(m_applicationCache); 1943 visitor->trace(m_applicationCache);
1944 visitor->trace(m_performance); 1944 visitor->trace(m_performance);
1945 visitor->trace(m_css); 1945 visitor->trace(m_css);
1946 visitor->trace(m_eventQueue); 1946 visitor->trace(m_eventQueue);
1947 WillBeHeapSupplementable<LocalDOMWindow>::trace(visitor); 1947 WillBeHeapSupplementable<LocalDOMWindow>::trace(visitor);
1948 EventTargetWithInlineData::trace(visitor); 1948 EventTargetWithInlineData::trace(visitor);
1949 } 1949 }
1950 1950
1951 } // namespace WebCore 1951 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698