OLD | NEW |
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 Loading... |
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 2637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3150 else | 3147 else |
3151 m_viewportDescription = viewportDescription; | 3148 m_viewportDescription = viewportDescription; |
3152 } | 3149 } |
3153 | 3150 |
3154 updateViewportDescription(); | 3151 updateViewportDescription(); |
3155 } | 3152 } |
3156 | 3153 |
3157 void Document::updateViewportDescription() | 3154 void Document::updateViewportDescription() |
3158 { | 3155 { |
3159 if (frame() && frame()->isMainFrame()) { | 3156 if (frame() && frame()->isMainFrame()) { |
3160 #ifndef NDEBUG | |
3161 m_didDispatchViewportPropertiesChanged = true; | |
3162 #endif | |
3163 frameHost()->chrome().dispatchViewportPropertiesDidChange(m_viewportDesc
ription); | 3157 frameHost()->chrome().dispatchViewportPropertiesDidChange(m_viewportDesc
ription); |
3164 } | 3158 } |
3165 } | 3159 } |
3166 | 3160 |
3167 void Document::processReferrerPolicy(const String& policy) | 3161 void Document::processReferrerPolicy(const String& policy) |
3168 { | 3162 { |
3169 ASSERT(!policy.isNull()); | 3163 ASSERT(!policy.isNull()); |
3170 | 3164 |
3171 if (equalIgnoringCase(policy, "never")) { | 3165 if (equalIgnoringCase(policy, "never")) { |
3172 setReferrerPolicy(ReferrerPolicyNever); | 3166 setReferrerPolicy(ReferrerPolicyNever); |
(...skipping 2680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5853 using namespace WebCore; | 5847 using namespace WebCore; |
5854 void showLiveDocumentInstances() | 5848 void showLiveDocumentInstances() |
5855 { | 5849 { |
5856 WeakDocumentSet& set = liveDocumentSet(); | 5850 WeakDocumentSet& set = liveDocumentSet(); |
5857 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5851 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5858 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { | 5852 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { |
5859 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); | 5853 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); |
5860 } | 5854 } |
5861 } | 5855 } |
5862 #endif | 5856 #endif |
OLD | NEW |