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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 #include "core/events/PageTransitionEvent.h" | 108 #include "core/events/PageTransitionEvent.h" |
109 #include "core/events/ScopedEventQueue.h" | 109 #include "core/events/ScopedEventQueue.h" |
110 #include "core/fetch/ResourceFetcher.h" | 110 #include "core/fetch/ResourceFetcher.h" |
111 #include "core/frame/LocalDOMWindow.h" | 111 #include "core/frame/LocalDOMWindow.h" |
112 #include "core/frame/FrameConsole.h" | 112 #include "core/frame/FrameConsole.h" |
113 #include "core/frame/FrameHost.h" | 113 #include "core/frame/FrameHost.h" |
114 #include "core/frame/FrameView.h" | 114 #include "core/frame/FrameView.h" |
115 #include "core/frame/History.h" | 115 #include "core/frame/History.h" |
116 #include "core/frame/LocalFrame.h" | 116 #include "core/frame/LocalFrame.h" |
117 #include "core/frame/Settings.h" | 117 #include "core/frame/Settings.h" |
| 118 #include "core/frame/ViewportChangeNotifier.h" |
118 #include "core/frame/csp/ContentSecurityPolicy.h" | 119 #include "core/frame/csp/ContentSecurityPolicy.h" |
119 #include "core/html/DocumentNameCollection.h" | 120 #include "core/html/DocumentNameCollection.h" |
120 #include "core/html/HTMLAllCollection.h" | 121 #include "core/html/HTMLAllCollection.h" |
121 #include "core/html/HTMLAnchorElement.h" | 122 #include "core/html/HTMLAnchorElement.h" |
122 #include "core/html/HTMLBaseElement.h" | 123 #include "core/html/HTMLBaseElement.h" |
123 #include "core/html/HTMLCanvasElement.h" | 124 #include "core/html/HTMLCanvasElement.h" |
124 #include "core/html/HTMLCollection.h" | 125 #include "core/html/HTMLCollection.h" |
125 #include "core/html/HTMLDialogElement.h" | 126 #include "core/html/HTMLDialogElement.h" |
126 #include "core/html/HTMLDocument.h" | 127 #include "core/html/HTMLDocument.h" |
127 #include "core/html/HTMLFrameOwnerElement.h" | 128 #include "core/html/HTMLFrameOwnerElement.h" |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 #endif | 486 #endif |
486 , m_contextDocument(initializer.contextDocument()) | 487 , m_contextDocument(initializer.contextDocument()) |
487 , m_hasFullscreenElementStack(false) | 488 , m_hasFullscreenElementStack(false) |
488 , m_loadEventDelayCount(0) | 489 , m_loadEventDelayCount(0) |
489 , m_loadEventDelayTimer(this, &Document::loadEventDelayTimerFired) | 490 , m_loadEventDelayTimer(this, &Document::loadEventDelayTimerFired) |
490 , m_pluginLoadingTimer(this, &Document::pluginLoadingTimerFired) | 491 , m_pluginLoadingTimer(this, &Document::pluginLoadingTimerFired) |
491 , m_didSetReferrerPolicy(false) | 492 , m_didSetReferrerPolicy(false) |
492 , m_referrerPolicy(ReferrerPolicyDefault) | 493 , m_referrerPolicy(ReferrerPolicyDefault) |
493 , m_directionSetOnDocumentElement(false) | 494 , m_directionSetOnDocumentElement(false) |
494 , m_writingModeSetOnDocumentElement(false) | 495 , m_writingModeSetOnDocumentElement(false) |
| 496 , m_viewportChangeNotifier(ViewportChangeNotifier::create()) |
495 , m_writeRecursionIsTooDeep(false) | 497 , m_writeRecursionIsTooDeep(false) |
496 , m_writeRecursionDepth(0) | 498 , m_writeRecursionDepth(0) |
497 , m_taskRunner(MainThreadTaskRunner::create(this)) | 499 , m_taskRunner(MainThreadTaskRunner::create(this)) |
498 , m_registrationContext(initializer.registrationContext(this)) | 500 , m_registrationContext(initializer.registrationContext(this)) |
499 , m_elementDataCacheClearTimer(this, &Document::elementDataCacheClearTimerFi
red) | 501 , m_elementDataCacheClearTimer(this, &Document::elementDataCacheClearTimerFi
red) |
500 #ifndef NDEBUG | 502 #ifndef NDEBUG |
501 , m_didDispatchViewportPropertiesChanged(false) | 503 , m_didDispatchViewportPropertiesChanged(false) |
502 #endif | 504 #endif |
503 , m_timeline(AnimationTimeline::create(this)) | 505 , m_timeline(AnimationTimeline::create(this)) |
504 , m_templateDocumentHost(nullptr) | 506 , m_templateDocumentHost(nullptr) |
(...skipping 2880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3385 if (!m_evaluateMediaQueriesOnStyleRecalc) | 3387 if (!m_evaluateMediaQueriesOnStyleRecalc) |
3386 return; | 3388 return; |
3387 evaluateMediaQueryList(); | 3389 evaluateMediaQueryList(); |
3388 m_evaluateMediaQueriesOnStyleRecalc = false; | 3390 m_evaluateMediaQueriesOnStyleRecalc = false; |
3389 } | 3391 } |
3390 | 3392 |
3391 void Document::evaluateMediaQueryList() | 3393 void Document::evaluateMediaQueryList() |
3392 { | 3394 { |
3393 if (m_mediaQueryMatcher) | 3395 if (m_mediaQueryMatcher) |
3394 m_mediaQueryMatcher->mediaFeaturesChanged(); | 3396 m_mediaQueryMatcher->mediaFeaturesChanged(); |
| 3397 m_viewportChangeNotifier->viewportChanged(); |
3395 } | 3398 } |
3396 | 3399 |
3397 void Document::notifyResizeForViewportUnits() | 3400 void Document::notifyResizeForViewportUnits() |
3398 { | 3401 { |
3399 if (!hasViewportUnits()) | 3402 if (!hasViewportUnits()) |
3400 return; | 3403 return; |
3401 ensureStyleResolver().notifyResizeForViewportUnits(); | 3404 ensureStyleResolver().notifyResizeForViewportUnits(); |
3402 setNeedsStyleRecalcForViewportUnits(); | 3405 setNeedsStyleRecalcForViewportUnits(); |
3403 } | 3406 } |
3404 | 3407 |
(...skipping 2357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5762 using namespace WebCore; | 5765 using namespace WebCore; |
5763 void showLiveDocumentInstances() | 5766 void showLiveDocumentInstances() |
5764 { | 5767 { |
5765 WeakDocumentSet& set = liveDocumentSet(); | 5768 WeakDocumentSet& set = liveDocumentSet(); |
5766 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5769 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5767 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { | 5770 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { |
5768 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); | 5771 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); |
5769 } | 5772 } |
5770 } | 5773 } |
5771 #endif | 5774 #endif |
OLD | NEW |