| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 #include "core/loader/ImageLoader.h" | 182 #include "core/loader/ImageLoader.h" |
| 183 #include "core/loader/NavigationScheduler.h" | 183 #include "core/loader/NavigationScheduler.h" |
| 184 #include "core/loader/appcache/ApplicationCacheHost.h" | 184 #include "core/loader/appcache/ApplicationCacheHost.h" |
| 185 #include "core/page/ChromeClient.h" | 185 #include "core/page/ChromeClient.h" |
| 186 #include "core/page/EventWithHitTestResults.h" | 186 #include "core/page/EventWithHitTestResults.h" |
| 187 #include "core/page/FocusController.h" | 187 #include "core/page/FocusController.h" |
| 188 #include "core/page/FrameTree.h" | 188 #include "core/page/FrameTree.h" |
| 189 #include "core/page/Page.h" | 189 #include "core/page/Page.h" |
| 190 #include "core/page/PointerLockController.h" | 190 #include "core/page/PointerLockController.h" |
| 191 #include "core/page/scrolling/ScrollingCoordinator.h" | 191 #include "core/page/scrolling/ScrollingCoordinator.h" |
| 192 #include "core/page/scrolling/SnapCoordinator.h" |
| 192 #include "core/svg/SVGDocumentExtensions.h" | 193 #include "core/svg/SVGDocumentExtensions.h" |
| 193 #include "core/svg/SVGTitleElement.h" | 194 #include "core/svg/SVGTitleElement.h" |
| 194 #include "core/svg/SVGUseElement.h" | 195 #include "core/svg/SVGUseElement.h" |
| 195 #include "core/timing/DOMWindowPerformance.h" | 196 #include "core/timing/DOMWindowPerformance.h" |
| 196 #include "core/timing/Performance.h" | 197 #include "core/timing/Performance.h" |
| 197 #include "core/workers/SharedWorkerRepositoryClient.h" | 198 #include "core/workers/SharedWorkerRepositoryClient.h" |
| 198 #include "core/xml/parser/XMLDocumentParser.h" | 199 #include "core/xml/parser/XMLDocumentParser.h" |
| 199 #include "platform/DateComponents.h" | 200 #include "platform/DateComponents.h" |
| 200 #include "platform/EventDispatchForbiddenScope.h" | 201 #include "platform/EventDispatchForbiddenScope.h" |
| 201 #include "platform/Language.h" | 202 #include "platform/Language.h" |
| (...skipping 5081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5283 void Document::setThreadedParsingEnabledForTesting(bool enabled) | 5284 void Document::setThreadedParsingEnabledForTesting(bool enabled) |
| 5284 { | 5285 { |
| 5285 s_threadedParsingEnabledForTesting = enabled; | 5286 s_threadedParsingEnabledForTesting = enabled; |
| 5286 } | 5287 } |
| 5287 | 5288 |
| 5288 bool Document::threadedParsingEnabledForTesting() | 5289 bool Document::threadedParsingEnabledForTesting() |
| 5289 { | 5290 { |
| 5290 return s_threadedParsingEnabledForTesting; | 5291 return s_threadedParsingEnabledForTesting; |
| 5291 } | 5292 } |
| 5292 | 5293 |
| 5294 SnapCoordinator* Document::snapCoordinator() |
| 5295 { |
| 5296 if (RuntimeEnabledFeatures::cssScrollSnapPointsEnabled() && !m_snapCoordinat
or) |
| 5297 m_snapCoordinator = SnapCoordinator::create(); |
| 5298 |
| 5299 return m_snapCoordinator.get(); |
| 5300 } |
| 5301 |
| 5293 bool Document::hasActiveParser() | 5302 bool Document::hasActiveParser() |
| 5294 { | 5303 { |
| 5295 return m_activeParserCount || (m_parser && m_parser->processingData()); | 5304 return m_activeParserCount || (m_parser && m_parser->processingData()); |
| 5296 } | 5305 } |
| 5297 | 5306 |
| 5298 void Document::setContextFeatures(ContextFeatures& features) | 5307 void Document::setContextFeatures(ContextFeatures& features) |
| 5299 { | 5308 { |
| 5300 m_contextFeatures = PassRefPtrWillBeRawPtr<ContextFeatures>(features); | 5309 m_contextFeatures = PassRefPtrWillBeRawPtr<ContextFeatures>(features); |
| 5301 } | 5310 } |
| 5302 | 5311 |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5752 visitor->trace(m_timers); | 5761 visitor->trace(m_timers); |
| 5753 visitor->trace(m_templateDocument); | 5762 visitor->trace(m_templateDocument); |
| 5754 visitor->trace(m_templateDocumentHost); | 5763 visitor->trace(m_templateDocumentHost); |
| 5755 visitor->trace(m_visibilityObservers); | 5764 visitor->trace(m_visibilityObservers); |
| 5756 visitor->trace(m_userActionElements); | 5765 visitor->trace(m_userActionElements); |
| 5757 visitor->trace(m_svgExtensions); | 5766 visitor->trace(m_svgExtensions); |
| 5758 visitor->trace(m_timeline); | 5767 visitor->trace(m_timeline); |
| 5759 visitor->trace(m_compositorPendingAnimations); | 5768 visitor->trace(m_compositorPendingAnimations); |
| 5760 visitor->trace(m_contextDocument); | 5769 visitor->trace(m_contextDocument); |
| 5761 visitor->trace(m_canvasFontCache); | 5770 visitor->trace(m_canvasFontCache); |
| 5771 visitor->trace(m_snapCoordinator); |
| 5762 WillBeHeapSupplementable<Document>::trace(visitor); | 5772 WillBeHeapSupplementable<Document>::trace(visitor); |
| 5763 #endif | 5773 #endif |
| 5764 TreeScope::trace(visitor); | 5774 TreeScope::trace(visitor); |
| 5765 ContainerNode::trace(visitor); | 5775 ContainerNode::trace(visitor); |
| 5766 ExecutionContext::trace(visitor); | 5776 ExecutionContext::trace(visitor); |
| 5767 DocumentLifecycleNotifier::trace(visitor); | 5777 DocumentLifecycleNotifier::trace(visitor); |
| 5768 SecurityContext::trace(visitor); | 5778 SecurityContext::trace(visitor); |
| 5769 } | 5779 } |
| 5770 | 5780 |
| 5771 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Document>; | 5781 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Document>; |
| 5772 | 5782 |
| 5773 } // namespace blink | 5783 } // namespace blink |
| 5774 | 5784 |
| 5775 #ifndef NDEBUG | 5785 #ifndef NDEBUG |
| 5776 using namespace blink; | 5786 using namespace blink; |
| 5777 void showLiveDocumentInstances() | 5787 void showLiveDocumentInstances() |
| 5778 { | 5788 { |
| 5779 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 5789 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
| 5780 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5790 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 5781 for (Document* document : set) | 5791 for (Document* document : set) |
| 5782 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5792 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
| 5783 } | 5793 } |
| 5784 #endif | 5794 #endif |
| OLD | NEW |