| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 #include "core/loader/ImageLoader.h" | 183 #include "core/loader/ImageLoader.h" |
| 184 #include "core/loader/NavigationScheduler.h" | 184 #include "core/loader/NavigationScheduler.h" |
| 185 #include "core/loader/appcache/ApplicationCacheHost.h" | 185 #include "core/loader/appcache/ApplicationCacheHost.h" |
| 186 #include "core/page/ChromeClient.h" | 186 #include "core/page/ChromeClient.h" |
| 187 #include "core/page/EventWithHitTestResults.h" | 187 #include "core/page/EventWithHitTestResults.h" |
| 188 #include "core/page/FocusController.h" | 188 #include "core/page/FocusController.h" |
| 189 #include "core/page/FrameTree.h" | 189 #include "core/page/FrameTree.h" |
| 190 #include "core/page/Page.h" | 190 #include "core/page/Page.h" |
| 191 #include "core/page/PointerLockController.h" | 191 #include "core/page/PointerLockController.h" |
| 192 #include "core/page/scrolling/ScrollingCoordinator.h" | 192 #include "core/page/scrolling/ScrollingCoordinator.h" |
| 193 #include "core/page/scrolling/SnapCoordinator.h" |
| 193 #include "core/svg/SVGDocumentExtensions.h" | 194 #include "core/svg/SVGDocumentExtensions.h" |
| 194 #include "core/svg/SVGTitleElement.h" | 195 #include "core/svg/SVGTitleElement.h" |
| 195 #include "core/svg/SVGUseElement.h" | 196 #include "core/svg/SVGUseElement.h" |
| 196 #include "core/timing/DOMWindowPerformance.h" | 197 #include "core/timing/DOMWindowPerformance.h" |
| 197 #include "core/timing/Performance.h" | 198 #include "core/timing/Performance.h" |
| 198 #include "core/workers/SharedWorkerRepositoryClient.h" | 199 #include "core/workers/SharedWorkerRepositoryClient.h" |
| 199 #include "core/xml/parser/XMLDocumentParser.h" | 200 #include "core/xml/parser/XMLDocumentParser.h" |
| 200 #include "platform/DateComponents.h" | 201 #include "platform/DateComponents.h" |
| 201 #include "platform/EventDispatchForbiddenScope.h" | 202 #include "platform/EventDispatchForbiddenScope.h" |
| 202 #include "platform/Histogram.h" | 203 #include "platform/Histogram.h" |
| (...skipping 5296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5499 void Document::setThreadedParsingEnabledForTesting(bool enabled) | 5500 void Document::setThreadedParsingEnabledForTesting(bool enabled) |
| 5500 { | 5501 { |
| 5501 s_threadedParsingEnabledForTesting = enabled; | 5502 s_threadedParsingEnabledForTesting = enabled; |
| 5502 } | 5503 } |
| 5503 | 5504 |
| 5504 bool Document::threadedParsingEnabledForTesting() | 5505 bool Document::threadedParsingEnabledForTesting() |
| 5505 { | 5506 { |
| 5506 return s_threadedParsingEnabledForTesting; | 5507 return s_threadedParsingEnabledForTesting; |
| 5507 } | 5508 } |
| 5508 | 5509 |
| 5510 SnapCoordinator* Document::snapCoordinator() |
| 5511 { |
| 5512 if (RuntimeEnabledFeatures::cssScrollSnapPointsEnabled() && !m_snapCoordinat
or) |
| 5513 m_snapCoordinator = SnapCoordinator::create(); |
| 5514 |
| 5515 return m_snapCoordinator.get(); |
| 5516 } |
| 5517 |
| 5509 bool Document::hasActiveParser() | 5518 bool Document::hasActiveParser() |
| 5510 { | 5519 { |
| 5511 return m_activeParserCount || (m_parser && m_parser->processingData()); | 5520 return m_activeParserCount || (m_parser && m_parser->processingData()); |
| 5512 } | 5521 } |
| 5513 | 5522 |
| 5514 void Document::setContextFeatures(ContextFeatures& features) | 5523 void Document::setContextFeatures(ContextFeatures& features) |
| 5515 { | 5524 { |
| 5516 m_contextFeatures = PassRefPtrWillBeRawPtr<ContextFeatures>(features); | 5525 m_contextFeatures = PassRefPtrWillBeRawPtr<ContextFeatures>(features); |
| 5517 } | 5526 } |
| 5518 | 5527 |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5972 visitor->trace(m_templateDocumentHost); | 5981 visitor->trace(m_templateDocumentHost); |
| 5973 visitor->trace(m_visibilityObservers); | 5982 visitor->trace(m_visibilityObservers); |
| 5974 visitor->trace(m_userActionElements); | 5983 visitor->trace(m_userActionElements); |
| 5975 visitor->trace(m_svgExtensions); | 5984 visitor->trace(m_svgExtensions); |
| 5976 visitor->trace(m_timeline); | 5985 visitor->trace(m_timeline); |
| 5977 visitor->trace(m_compositorPendingAnimations); | 5986 visitor->trace(m_compositorPendingAnimations); |
| 5978 visitor->trace(m_contextDocument); | 5987 visitor->trace(m_contextDocument); |
| 5979 visitor->trace(m_canvasFontCache); | 5988 visitor->trace(m_canvasFontCache); |
| 5980 visitor->trace(m_intersectionObserverController); | 5989 visitor->trace(m_intersectionObserverController); |
| 5981 visitor->trace(m_intersectionObserverData); | 5990 visitor->trace(m_intersectionObserverData); |
| 5991 visitor->trace(m_snapCoordinator); |
| 5982 WillBeHeapSupplementable<Document>::trace(visitor); | 5992 WillBeHeapSupplementable<Document>::trace(visitor); |
| 5983 #endif | 5993 #endif |
| 5984 TreeScope::trace(visitor); | 5994 TreeScope::trace(visitor); |
| 5985 ContainerNode::trace(visitor); | 5995 ContainerNode::trace(visitor); |
| 5986 ExecutionContext::trace(visitor); | 5996 ExecutionContext::trace(visitor); |
| 5987 DocumentLifecycleNotifier::trace(visitor); | 5997 DocumentLifecycleNotifier::trace(visitor); |
| 5988 SecurityContext::trace(visitor); | 5998 SecurityContext::trace(visitor); |
| 5989 } | 5999 } |
| 5990 | 6000 |
| 5991 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Document>; | 6001 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Document>; |
| 5992 | 6002 |
| 5993 } // namespace blink | 6003 } // namespace blink |
| 5994 | 6004 |
| 5995 #ifndef NDEBUG | 6005 #ifndef NDEBUG |
| 5996 using namespace blink; | 6006 using namespace blink; |
| 5997 void showLiveDocumentInstances() | 6007 void showLiveDocumentInstances() |
| 5998 { | 6008 { |
| 5999 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 6009 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
| 6000 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6010 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6001 for (Document* document : set) | 6011 for (Document* document : set) |
| 6002 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 6012 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
| 6003 } | 6013 } |
| 6004 #endif | 6014 #endif |
| OLD | NEW |