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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 #include "core/page/ChromeClient.h" | 200 #include "core/page/ChromeClient.h" |
201 #include "core/page/EventWithHitTestResults.h" | 201 #include "core/page/EventWithHitTestResults.h" |
202 #include "core/page/FocusController.h" | 202 #include "core/page/FocusController.h" |
203 #include "core/page/FrameTree.h" | 203 #include "core/page/FrameTree.h" |
204 #include "core/page/Page.h" | 204 #include "core/page/Page.h" |
205 #include "core/page/PointerLockController.h" | 205 #include "core/page/PointerLockController.h" |
206 #include "core/page/scrolling/RootScrollerController.h" | 206 #include "core/page/scrolling/RootScrollerController.h" |
207 #include "core/page/scrolling/ScrollStateCallback.h" | 207 #include "core/page/scrolling/ScrollStateCallback.h" |
208 #include "core/page/scrolling/ScrollingCoordinator.h" | 208 #include "core/page/scrolling/ScrollingCoordinator.h" |
209 #include "core/page/scrolling/SnapCoordinator.h" | 209 #include "core/page/scrolling/SnapCoordinator.h" |
210 #include "core/page/scrolling/ViewportScrollCallback.h" | 210 #include "core/page/scrolling/TopDocumentRootScrollerController.h" |
211 #include "core/svg/SVGDocumentExtensions.h" | 211 #include "core/svg/SVGDocumentExtensions.h" |
212 #include "core/svg/SVGScriptElement.h" | 212 #include "core/svg/SVGScriptElement.h" |
213 #include "core/svg/SVGTitleElement.h" | 213 #include "core/svg/SVGTitleElement.h" |
214 #include "core/svg/SVGUseElement.h" | 214 #include "core/svg/SVGUseElement.h" |
215 #include "core/timing/DOMWindowPerformance.h" | 215 #include "core/timing/DOMWindowPerformance.h" |
216 #include "core/timing/Performance.h" | 216 #include "core/timing/Performance.h" |
217 #include "core/workers/SharedWorkerRepositoryClient.h" | 217 #include "core/workers/SharedWorkerRepositoryClient.h" |
218 #include "core/xml/parser/XMLDocumentParser.h" | 218 #include "core/xml/parser/XMLDocumentParser.h" |
219 #include "platform/DateComponents.h" | 219 #include "platform/DateComponents.h" |
220 #include "platform/EventDispatchForbiddenScope.h" | 220 #include "platform/EventDispatchForbiddenScope.h" |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 ? m_frame->localDOMWindow()->maybeCustomElements() | 466 ? m_frame->localDOMWindow()->maybeCustomElements() |
467 : nullptr; | 467 : nullptr; |
468 if (registry && m_registrationContext) | 468 if (registry && m_registrationContext) |
469 registry->entangle(m_registrationContext); | 469 registry->entangle(m_registrationContext); |
470 } else if (m_importsController) { | 470 } else if (m_importsController) { |
471 m_fetcher = FrameFetchContext::createContextAndFetcher(nullptr, this); | 471 m_fetcher = FrameFetchContext::createContextAndFetcher(nullptr, this); |
472 } else { | 472 } else { |
473 m_fetcher = ResourceFetcher::create(nullptr); | 473 m_fetcher = ResourceFetcher::create(nullptr); |
474 } | 474 } |
475 | 475 |
476 m_rootScrollerController = RootScrollerController::create(*this); | 476 // TODO(bokan): This will probably blow up if we don't have an m_frame here |
| 477 // since we'll assume a child RootScrollerController. crbug.com/505516. |
| 478 m_rootScrollerController = isInMainFrame() |
| 479 ? TopDocumentRootScrollerController::create(*this) |
| 480 : RootScrollerController::create(*this); |
477 | 481 |
478 // We depend on the url getting immediately set in subframes, but we | 482 // We depend on the url getting immediately set in subframes, but we |
479 // also depend on the url NOT getting immediately set in opened windows. | 483 // also depend on the url NOT getting immediately set in opened windows. |
480 // See fast/dom/early-frame-url.html | 484 // See fast/dom/early-frame-url.html |
481 // and fast/dom/location-new-window-no-crash.html, respectively. | 485 // and fast/dom/location-new-window-no-crash.html, respectively. |
482 // FIXME: Can/should we unify this behavior? | 486 // FIXME: Can/should we unify this behavior? |
483 if (initializer.shouldSetURL()) | 487 if (initializer.shouldSetURL()) |
484 setURL(initializer.url()); | 488 setURL(initializer.url()); |
485 | 489 |
486 initSecurityContext(initializer); | 490 initSecurityContext(initializer); |
(...skipping 5542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6029 } | 6033 } |
6030 | 6034 |
6031 void showLiveDocumentInstances() | 6035 void showLiveDocumentInstances() |
6032 { | 6036 { |
6033 WeakDocumentSet& set = liveDocumentSet(); | 6037 WeakDocumentSet& set = liveDocumentSet(); |
6034 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6038 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6035 for (Document* document : set) | 6039 for (Document* document : set) |
6036 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6040 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
6037 } | 6041 } |
6038 #endif | 6042 #endif |
OLD | NEW |