| Index: third_party/WebKit/Source/core/dom/Document.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
|
| index f6d9768d8deb3c1212ad0c8f673da467b359c551..67fc4c8b469a4744d181a8a702e7f80396d4eec5 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -190,6 +190,7 @@
|
| #include "core/page/Page.h"
|
| #include "core/page/PointerLockController.h"
|
| #include "core/page/scrolling/ScrollingCoordinator.h"
|
| +#include "core/page/scrolling/SnapCoordinator.h"
|
| #include "core/svg/SVGDocumentExtensions.h"
|
| #include "core/svg/SVGTitleElement.h"
|
| #include "core/svg/SVGUseElement.h"
|
| @@ -5506,6 +5507,14 @@ bool Document::threadedParsingEnabledForTesting()
|
| return s_threadedParsingEnabledForTesting;
|
| }
|
|
|
| +SnapCoordinator* Document::snapCoordinator()
|
| +{
|
| + if (RuntimeEnabledFeatures::cssScrollSnapPointsEnabled() && !m_snapCoordinator)
|
| + m_snapCoordinator = SnapCoordinator::create();
|
| +
|
| + return m_snapCoordinator.get();
|
| +}
|
| +
|
| bool Document::hasActiveParser()
|
| {
|
| return m_activeParserCount || (m_parser && m_parser->processingData());
|
| @@ -5979,6 +5988,7 @@ DEFINE_TRACE(Document)
|
| visitor->trace(m_canvasFontCache);
|
| visitor->trace(m_intersectionObserverController);
|
| visitor->trace(m_intersectionObserverData);
|
| + visitor->trace(m_snapCoordinator);
|
| WillBeHeapSupplementable<Document>::trace(visitor);
|
| #endif
|
| TreeScope::trace(visitor);
|
|
|