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

Side by Side Diff: Source/core/dom/Document.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 , m_pluginLoadingTimer(this, &Document::pluginLoadingTimerFired) 490 , m_pluginLoadingTimer(this, &Document::pluginLoadingTimerFired)
491 , m_didSetReferrerPolicy(false) 491 , m_didSetReferrerPolicy(false)
492 , m_referrerPolicy(ReferrerPolicyDefault) 492 , m_referrerPolicy(ReferrerPolicyDefault)
493 , m_directionSetOnDocumentElement(false) 493 , m_directionSetOnDocumentElement(false)
494 , m_writingModeSetOnDocumentElement(false) 494 , m_writingModeSetOnDocumentElement(false)
495 , m_writeRecursionIsTooDeep(false) 495 , m_writeRecursionIsTooDeep(false)
496 , m_writeRecursionDepth(0) 496 , m_writeRecursionDepth(0)
497 , m_taskRunner(MainThreadTaskRunner::create(this)) 497 , m_taskRunner(MainThreadTaskRunner::create(this))
498 , m_registrationContext(initializer.registrationContext(this)) 498 , m_registrationContext(initializer.registrationContext(this))
499 , m_elementDataCacheClearTimer(this, &Document::elementDataCacheClearTimerFi red) 499 , m_elementDataCacheClearTimer(this, &Document::elementDataCacheClearTimerFi red)
500 #ifndef NDEBUG
501 , m_didDispatchViewportPropertiesChanged(false)
502 #endif
503 , m_timeline(AnimationTimeline::create(this)) 500 , m_timeline(AnimationTimeline::create(this))
504 , m_templateDocumentHost(nullptr) 501 , m_templateDocumentHost(nullptr)
505 , m_didAssociateFormControlsTimer(this, &Document::didAssociateFormControlsT imerFired) 502 , m_didAssociateFormControlsTimer(this, &Document::didAssociateFormControlsT imerFired)
506 , m_hasViewportUnits(false) 503 , m_hasViewportUnits(false)
507 , m_styleRecalcElementCounter(0) 504 , m_styleRecalcElementCounter(0)
508 { 505 {
509 setClient(this); 506 setClient(this);
510 ScriptWrappable::init(this); 507 ScriptWrappable::init(this);
511 508
512 if (m_frame) { 509 if (m_frame) {
(...skipping 2635 matching lines...) Expand 10 before | Expand all | Expand 10 after
3148 else 3145 else
3149 m_viewportDescription = viewportDescription; 3146 m_viewportDescription = viewportDescription;
3150 } 3147 }
3151 3148
3152 updateViewportDescription(); 3149 updateViewportDescription();
3153 } 3150 }
3154 3151
3155 void Document::updateViewportDescription() 3152 void Document::updateViewportDescription()
3156 { 3153 {
3157 if (frame() && frame()->isMainFrame()) { 3154 if (frame() && frame()->isMainFrame()) {
3158 #ifndef NDEBUG
3159 m_didDispatchViewportPropertiesChanged = true;
3160 #endif
3161 frameHost()->chrome().dispatchViewportPropertiesDidChange(m_viewportDesc ription); 3155 frameHost()->chrome().dispatchViewportPropertiesDidChange(m_viewportDesc ription);
3162 } 3156 }
3163 } 3157 }
3164 3158
3165 void Document::processReferrerPolicy(const String& policy) 3159 void Document::processReferrerPolicy(const String& policy)
3166 { 3160 {
3167 ASSERT(!policy.isNull()); 3161 ASSERT(!policy.isNull());
3168 3162
3169 if (equalIgnoringCase(policy, "never")) { 3163 if (equalIgnoringCase(policy, "never")) {
3170 setReferrerPolicy(ReferrerPolicyNever); 3164 setReferrerPolicy(ReferrerPolicyNever);
(...skipping 2680 matching lines...) Expand 10 before | Expand all | Expand 10 after
5851 using namespace WebCore; 5845 using namespace WebCore;
5852 void showLiveDocumentInstances() 5846 void showLiveDocumentInstances()
5853 { 5847 {
5854 WeakDocumentSet& set = liveDocumentSet(); 5848 WeakDocumentSet& set = liveDocumentSet();
5855 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 5849 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
5856 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) { 5850 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) {
5857 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data()); 5851 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data());
5858 } 5852 }
5859 } 5853 }
5860 #endif 5854 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698