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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 #include "core/loader/FrameLoaderClient.h" | 188 #include "core/loader/FrameLoaderClient.h" |
189 #include "core/loader/ImageLoader.h" | 189 #include "core/loader/ImageLoader.h" |
190 #include "core/loader/NavigationScheduler.h" | 190 #include "core/loader/NavigationScheduler.h" |
191 #include "core/loader/appcache/ApplicationCacheHost.h" | 191 #include "core/loader/appcache/ApplicationCacheHost.h" |
192 #include "core/page/ChromeClient.h" | 192 #include "core/page/ChromeClient.h" |
193 #include "core/page/EventWithHitTestResults.h" | 193 #include "core/page/EventWithHitTestResults.h" |
194 #include "core/page/FocusController.h" | 194 #include "core/page/FocusController.h" |
195 #include "core/page/FrameTree.h" | 195 #include "core/page/FrameTree.h" |
196 #include "core/page/Page.h" | 196 #include "core/page/Page.h" |
197 #include "core/page/PointerLockController.h" | 197 #include "core/page/PointerLockController.h" |
| 198 #include "core/page/scrolling/ChildViewportScrollCallback.h" |
198 #include "core/page/scrolling/RootScrollerController.h" | 199 #include "core/page/scrolling/RootScrollerController.h" |
| 200 #include "core/page/scrolling/RootViewportScrollCallback.h" |
199 #include "core/page/scrolling/ScrollStateCallback.h" | 201 #include "core/page/scrolling/ScrollStateCallback.h" |
200 #include "core/page/scrolling/ScrollingCoordinator.h" | 202 #include "core/page/scrolling/ScrollingCoordinator.h" |
201 #include "core/page/scrolling/SnapCoordinator.h" | 203 #include "core/page/scrolling/SnapCoordinator.h" |
202 #include "core/page/scrolling/ViewportScrollCallback.h" | |
203 #include "core/svg/SVGDocumentExtensions.h" | 204 #include "core/svg/SVGDocumentExtensions.h" |
204 #include "core/svg/SVGScriptElement.h" | 205 #include "core/svg/SVGScriptElement.h" |
205 #include "core/svg/SVGTitleElement.h" | 206 #include "core/svg/SVGTitleElement.h" |
206 #include "core/svg/SVGUseElement.h" | 207 #include "core/svg/SVGUseElement.h" |
207 #include "core/timing/DOMWindowPerformance.h" | 208 #include "core/timing/DOMWindowPerformance.h" |
208 #include "core/timing/Performance.h" | 209 #include "core/timing/Performance.h" |
209 #include "core/workers/SharedWorkerRepositoryClient.h" | 210 #include "core/workers/SharedWorkerRepositoryClient.h" |
210 #include "core/xml/parser/XMLDocumentParser.h" | 211 #include "core/xml/parser/XMLDocumentParser.h" |
211 #include "platform/DateComponents.h" | 212 #include "platform/DateComponents.h" |
212 #include "platform/EventDispatchForbiddenScope.h" | 213 #include "platform/EventDispatchForbiddenScope.h" |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 m_fetcher = m_frame->loader().documentLoader()->fetcher(); | 456 m_fetcher = m_frame->loader().documentLoader()->fetcher(); |
456 FrameFetchContext::provideDocumentToContext(m_fetcher->context(), this); | 457 FrameFetchContext::provideDocumentToContext(m_fetcher->context(), this); |
457 } else if (m_importsController) { | 458 } else if (m_importsController) { |
458 m_fetcher = FrameFetchContext::createContextAndFetcher(nullptr, this); | 459 m_fetcher = FrameFetchContext::createContextAndFetcher(nullptr, this); |
459 } else { | 460 } else { |
460 m_fetcher = ResourceFetcher::create(nullptr); | 461 m_fetcher = ResourceFetcher::create(nullptr); |
461 } | 462 } |
462 | 463 |
463 ViewportScrollCallback* applyScroll = nullptr; | 464 ViewportScrollCallback* applyScroll = nullptr; |
464 if (isInMainFrame()) { | 465 if (isInMainFrame()) { |
465 applyScroll = RootScrollerController::createViewportApplyScroll( | 466 applyScroll = RootViewportScrollCallback::create( |
466 &frameHost()->topControls(), &frameHost()->overscrollController()); | 467 &frameHost()->topControls(), &frameHost()->overscrollController()); |
467 } else { | 468 } else { |
468 applyScroll = | 469 applyScroll = |
469 RootScrollerController::createViewportApplyScroll(nullptr, nullptr); | 470 ChildViewportScrollCallback::create(); |
470 } | 471 } |
471 | 472 |
472 m_rootScrollerController = | 473 m_rootScrollerController = |
473 RootScrollerController::create(*this, applyScroll); | 474 RootScrollerController::create(*this, applyScroll); |
474 | 475 |
475 // We depend on the url getting immediately set in subframes, but we | 476 // We depend on the url getting immediately set in subframes, but we |
476 // also depend on the url NOT getting immediately set in opened windows. | 477 // also depend on the url NOT getting immediately set in opened windows. |
477 // See fast/dom/early-frame-url.html | 478 // See fast/dom/early-frame-url.html |
478 // and fast/dom/location-new-window-no-crash.html, respectively. | 479 // and fast/dom/location-new-window-no-crash.html, respectively. |
479 // FIXME: Can/should we unify this behavior? | 480 // FIXME: Can/should we unify this behavior? |
(...skipping 5554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6034 } | 6035 } |
6035 | 6036 |
6036 void showLiveDocumentInstances() | 6037 void showLiveDocumentInstances() |
6037 { | 6038 { |
6038 WeakDocumentSet& set = liveDocumentSet(); | 6039 WeakDocumentSet& set = liveDocumentSet(); |
6039 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6040 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6040 for (Document* document : set) | 6041 for (Document* document : set) |
6041 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6042 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
6042 } | 6043 } |
6043 #endif | 6044 #endif |
OLD | NEW |