| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 #include "core/loader/appcache/ApplicationCacheHost.h" | 190 #include "core/loader/appcache/ApplicationCacheHost.h" |
| 191 #include "core/page/ChromeClient.h" | 191 #include "core/page/ChromeClient.h" |
| 192 #include "core/page/EventWithHitTestResults.h" | 192 #include "core/page/EventWithHitTestResults.h" |
| 193 #include "core/page/FocusController.h" | 193 #include "core/page/FocusController.h" |
| 194 #include "core/page/FrameTree.h" | 194 #include "core/page/FrameTree.h" |
| 195 #include "core/page/Page.h" | 195 #include "core/page/Page.h" |
| 196 #include "core/page/PointerLockController.h" | 196 #include "core/page/PointerLockController.h" |
| 197 #include "core/page/scrolling/RootScroller.h" | 197 #include "core/page/scrolling/RootScroller.h" |
| 198 #include "core/page/scrolling/ScrollingCoordinator.h" | 198 #include "core/page/scrolling/ScrollingCoordinator.h" |
| 199 #include "core/page/scrolling/SnapCoordinator.h" | 199 #include "core/page/scrolling/SnapCoordinator.h" |
| 200 #include "core/page/scrolling/snap/SnapManagerBridge.h" |
| 200 #include "core/svg/SVGDocumentExtensions.h" | 201 #include "core/svg/SVGDocumentExtensions.h" |
| 201 #include "core/svg/SVGScriptElement.h" | 202 #include "core/svg/SVGScriptElement.h" |
| 202 #include "core/svg/SVGTitleElement.h" | 203 #include "core/svg/SVGTitleElement.h" |
| 203 #include "core/svg/SVGUseElement.h" | 204 #include "core/svg/SVGUseElement.h" |
| 204 #include "core/timing/DOMWindowPerformance.h" | 205 #include "core/timing/DOMWindowPerformance.h" |
| 205 #include "core/timing/Performance.h" | 206 #include "core/timing/Performance.h" |
| 206 #include "core/workers/SharedWorkerRepositoryClient.h" | 207 #include "core/workers/SharedWorkerRepositoryClient.h" |
| 207 #include "core/xml/parser/XMLDocumentParser.h" | 208 #include "core/xml/parser/XMLDocumentParser.h" |
| 208 #include "platform/DateComponents.h" | 209 #include "platform/DateComponents.h" |
| 209 #include "platform/EventDispatchForbiddenScope.h" | 210 #include "platform/EventDispatchForbiddenScope.h" |
| (...skipping 5332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5542 s_threadedParsingEnabledForTesting = enabled; | 5543 s_threadedParsingEnabledForTesting = enabled; |
| 5543 } | 5544 } |
| 5544 | 5545 |
| 5545 bool Document::threadedParsingEnabledForTesting() | 5546 bool Document::threadedParsingEnabledForTesting() |
| 5546 { | 5547 { |
| 5547 return s_threadedParsingEnabledForTesting; | 5548 return s_threadedParsingEnabledForTesting; |
| 5548 } | 5549 } |
| 5549 | 5550 |
| 5550 SnapCoordinator* Document::snapCoordinator() | 5551 SnapCoordinator* Document::snapCoordinator() |
| 5551 { | 5552 { |
| 5552 if (RuntimeEnabledFeatures::cssScrollSnapPointsEnabled() && !m_snapCoordinat
or) | 5553 if (RuntimeEnabledFeatures::cssScrollSnapPointsEnabled() && !m_snapCoordinat
or) { |
| 5553 m_snapCoordinator = SnapCoordinator::create(); | 5554 m_snapManagerBridge = SnapManagerBridge::create(this); |
| 5555 m_snapCoordinator = SnapCoordinator::create(m_snapManagerBridge.get()); |
| 5556 } |
| 5554 | 5557 |
| 5555 return m_snapCoordinator.get(); | 5558 return m_snapCoordinator.get(); |
| 5556 } | 5559 } |
| 5557 | 5560 |
| 5558 void Document::setContextFeatures(ContextFeatures& features) | 5561 void Document::setContextFeatures(ContextFeatures& features) |
| 5559 { | 5562 { |
| 5560 m_contextFeatures = &features; | 5563 m_contextFeatures = &features; |
| 5561 } | 5564 } |
| 5562 | 5565 |
| 5563 static LayoutObject* nearestCommonHoverAncestor(LayoutObject* obj1, LayoutObject
* obj2) | 5566 static LayoutObject* nearestCommonHoverAncestor(LayoutObject* obj1, LayoutObject
* obj2) |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5995 visitor->trace(m_templateDocumentHost); | 5998 visitor->trace(m_templateDocumentHost); |
| 5996 visitor->trace(m_userActionElements); | 5999 visitor->trace(m_userActionElements); |
| 5997 visitor->trace(m_svgExtensions); | 6000 visitor->trace(m_svgExtensions); |
| 5998 visitor->trace(m_timeline); | 6001 visitor->trace(m_timeline); |
| 5999 visitor->trace(m_compositorPendingAnimations); | 6002 visitor->trace(m_compositorPendingAnimations); |
| 6000 visitor->trace(m_contextDocument); | 6003 visitor->trace(m_contextDocument); |
| 6001 visitor->trace(m_canvasFontCache); | 6004 visitor->trace(m_canvasFontCache); |
| 6002 visitor->trace(m_intersectionObserverController); | 6005 visitor->trace(m_intersectionObserverController); |
| 6003 visitor->trace(m_intersectionObserverData); | 6006 visitor->trace(m_intersectionObserverData); |
| 6004 visitor->trace(m_snapCoordinator); | 6007 visitor->trace(m_snapCoordinator); |
| 6008 visitor->trace(m_snapManagerBridge); |
| 6005 Supplementable<Document>::trace(visitor); | 6009 Supplementable<Document>::trace(visitor); |
| 6006 TreeScope::trace(visitor); | 6010 TreeScope::trace(visitor); |
| 6007 ContainerNode::trace(visitor); | 6011 ContainerNode::trace(visitor); |
| 6008 ExecutionContext::trace(visitor); | 6012 ExecutionContext::trace(visitor); |
| 6009 SecurityContext::trace(visitor); | 6013 SecurityContext::trace(visitor); |
| 6010 } | 6014 } |
| 6011 | 6015 |
| 6012 DEFINE_TRACE_WRAPPERS(Document) | 6016 DEFINE_TRACE_WRAPPERS(Document) |
| 6013 { | 6017 { |
| 6014 visitor->traceWrappers(m_importsController); | 6018 visitor->traceWrappers(m_importsController); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 6033 #ifndef NDEBUG | 6037 #ifndef NDEBUG |
| 6034 using namespace blink; | 6038 using namespace blink; |
| 6035 void showLiveDocumentInstances() | 6039 void showLiveDocumentInstances() |
| 6036 { | 6040 { |
| 6037 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 6041 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
| 6038 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6042 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6039 for (Document* document : set) | 6043 for (Document* document : set) |
| 6040 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6044 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
| 6041 } | 6045 } |
| 6042 #endif | 6046 #endif |
| OLD | NEW |