| 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 5120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5322 void Document::setThreadedParsingEnabledForTesting(bool enabled) | 5323 void Document::setThreadedParsingEnabledForTesting(bool enabled) |
| 5323 { | 5324 { |
| 5324 s_threadedParsingEnabledForTesting = enabled; | 5325 s_threadedParsingEnabledForTesting = enabled; |
| 5325 } | 5326 } |
| 5326 | 5327 |
| 5327 bool Document::threadedParsingEnabledForTesting() | 5328 bool Document::threadedParsingEnabledForTesting() |
| 5328 { | 5329 { |
| 5329 return s_threadedParsingEnabledForTesting; | 5330 return s_threadedParsingEnabledForTesting; |
| 5330 } | 5331 } |
| 5331 | 5332 |
| 5333 SnapCoordinator* Document::snapCoordinator() |
| 5334 { |
| 5335 if (RuntimeEnabledFeatures::cssScrollSnapPointsEnabled() && !m_snapCoordinat
or) |
| 5336 m_snapCoordinator = SnapCoordinator::create(); |
| 5337 |
| 5338 return m_snapCoordinator.get(); |
| 5339 } |
| 5340 |
| 5332 bool Document::hasActiveParser() | 5341 bool Document::hasActiveParser() |
| 5333 { | 5342 { |
| 5334 return m_activeParserCount || (m_parser && m_parser->processingData()); | 5343 return m_activeParserCount || (m_parser && m_parser->processingData()); |
| 5335 } | 5344 } |
| 5336 | 5345 |
| 5337 void Document::setContextFeatures(ContextFeatures& features) | 5346 void Document::setContextFeatures(ContextFeatures& features) |
| 5338 { | 5347 { |
| 5339 m_contextFeatures = PassRefPtrWillBeRawPtr<ContextFeatures>(features); | 5348 m_contextFeatures = PassRefPtrWillBeRawPtr<ContextFeatures>(features); |
| 5340 } | 5349 } |
| 5341 | 5350 |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5824 visitor->trace(m_timers); | 5833 visitor->trace(m_timers); |
| 5825 visitor->trace(m_templateDocument); | 5834 visitor->trace(m_templateDocument); |
| 5826 visitor->trace(m_templateDocumentHost); | 5835 visitor->trace(m_templateDocumentHost); |
| 5827 visitor->trace(m_visibilityObservers); | 5836 visitor->trace(m_visibilityObservers); |
| 5828 visitor->trace(m_userActionElements); | 5837 visitor->trace(m_userActionElements); |
| 5829 visitor->trace(m_svgExtensions); | 5838 visitor->trace(m_svgExtensions); |
| 5830 visitor->trace(m_timeline); | 5839 visitor->trace(m_timeline); |
| 5831 visitor->trace(m_compositorPendingAnimations); | 5840 visitor->trace(m_compositorPendingAnimations); |
| 5832 visitor->trace(m_contextDocument); | 5841 visitor->trace(m_contextDocument); |
| 5833 visitor->trace(m_canvasFontCache); | 5842 visitor->trace(m_canvasFontCache); |
| 5843 visitor->trace(m_snapCoordinator); |
| 5834 WillBeHeapSupplementable<Document>::trace(visitor); | 5844 WillBeHeapSupplementable<Document>::trace(visitor); |
| 5835 #endif | 5845 #endif |
| 5836 TreeScope::trace(visitor); | 5846 TreeScope::trace(visitor); |
| 5837 ContainerNode::trace(visitor); | 5847 ContainerNode::trace(visitor); |
| 5838 ExecutionContext::trace(visitor); | 5848 ExecutionContext::trace(visitor); |
| 5839 DocumentLifecycleNotifier::trace(visitor); | 5849 DocumentLifecycleNotifier::trace(visitor); |
| 5840 SecurityContext::trace(visitor); | 5850 SecurityContext::trace(visitor); |
| 5841 } | 5851 } |
| 5842 | 5852 |
| 5843 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Document>; | 5853 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Document>; |
| 5844 | 5854 |
| 5845 } // namespace blink | 5855 } // namespace blink |
| 5846 | 5856 |
| 5847 #ifndef NDEBUG | 5857 #ifndef NDEBUG |
| 5848 using namespace blink; | 5858 using namespace blink; |
| 5849 void showLiveDocumentInstances() | 5859 void showLiveDocumentInstances() |
| 5850 { | 5860 { |
| 5851 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 5861 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
| 5852 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5862 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 5853 for (Document* document : set) | 5863 for (Document* document : set) |
| 5854 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5864 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
| 5855 } | 5865 } |
| 5856 #endif | 5866 #endif |
| OLD | NEW |