| 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 32063ef10c15b8a2ef57a0427ea08db2af18a56f..6f65a6034684234cad78cb22e9deb207f84ee7a9 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -195,7 +195,6 @@
|
| #include "core/page/PointerLockController.h"
|
| #include "core/page/scrolling/RootScroller.h"
|
| #include "core/page/scrolling/ScrollingCoordinator.h"
|
| -#include "core/page/scrolling/SnapCoordinator.h"
|
| #include "core/svg/SVGDocumentExtensions.h"
|
| #include "core/svg/SVGScriptElement.h"
|
| #include "core/svg/SVGTitleElement.h"
|
| @@ -1637,9 +1636,6 @@ void Document::inheritHtmlAndBodyElementStyles(StyleRecalcChange change)
|
| columnGap = overflowStyle->columnGap();
|
| }
|
|
|
| - ScrollSnapType snapType = overflowStyle->getScrollSnapType();
|
| - const LengthPoint& snapDestination = overflowStyle->scrollSnapDestination();
|
| -
|
| RefPtr<ComputedStyle> documentStyle = layoutView()->mutableStyle();
|
| if (documentStyle->getWritingMode() != rootWritingMode
|
| || documentStyle->direction() != rootDirection
|
| @@ -1648,9 +1644,7 @@ void Document::inheritHtmlAndBodyElementStyles(StyleRecalcChange change)
|
| || documentStyle->imageRendering() != imageRendering
|
| || documentStyle->overflowX() != overflowX
|
| || documentStyle->overflowY() != overflowY
|
| - || documentStyle->columnGap() != columnGap
|
| - || documentStyle->getScrollSnapType() != snapType
|
| - || documentStyle->scrollSnapDestination() != snapDestination) {
|
| + || documentStyle->columnGap() != columnGap) {
|
| RefPtr<ComputedStyle> newStyle = ComputedStyle::clone(*documentStyle);
|
| newStyle->setWritingMode(rootWritingMode);
|
| newStyle->setDirection(rootDirection);
|
| @@ -1660,8 +1654,6 @@ void Document::inheritHtmlAndBodyElementStyles(StyleRecalcChange change)
|
| newStyle->setOverflowX(overflowX);
|
| newStyle->setOverflowY(overflowY);
|
| newStyle->setColumnGap(columnGap);
|
| - newStyle->setScrollSnapType(snapType);
|
| - newStyle->setScrollSnapDestination(snapDestination);
|
| layoutView()->setStyle(newStyle);
|
| setupFontBuilder(*newStyle);
|
| }
|
| @@ -5538,14 +5530,6 @@ bool Document::threadedParsingEnabledForTesting()
|
| return s_threadedParsingEnabledForTesting;
|
| }
|
|
|
| -SnapCoordinator* Document::snapCoordinator()
|
| -{
|
| - if (RuntimeEnabledFeatures::cssScrollSnapPointsEnabled() && !m_snapCoordinator)
|
| - m_snapCoordinator = SnapCoordinator::create();
|
| -
|
| - return m_snapCoordinator.get();
|
| -}
|
| -
|
| void Document::setContextFeatures(ContextFeatures& features)
|
| {
|
| m_contextFeatures = &features;
|
| @@ -5987,7 +5971,6 @@ DEFINE_TRACE(Document)
|
| visitor->trace(m_canvasFontCache);
|
| visitor->trace(m_intersectionObserverController);
|
| visitor->trace(m_intersectionObserverData);
|
| - visitor->trace(m_snapCoordinator);
|
| Supplementable<Document>::trace(visitor);
|
| TreeScope::trace(visitor);
|
| ContainerNode::trace(visitor);
|
|
|