Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1052)

Unified Diff: Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp

Issue 1287623002: Delete blink code for scroll-blocks-on (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merge with trunk (no changes from previous patch) Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
diff --git a/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp b/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
index a8fccf28f6ffad24795b1d4eeac79bdb78c961fb..d7d6ebae914de8e9701743992256e3902bdb81c1 100644
--- a/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
+++ b/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
@@ -232,8 +232,6 @@ void CompositedDeprecatedPaintLayerMapping::createPrimaryGraphicsLayer()
updateLayerBlendMode(layoutObject()->styleRef());
updateIsRootForIsolatedGroup();
}
-
- updateScrollBlocksOn(layoutObject()->styleRef());
}
void CompositedDeprecatedPaintLayerMapping::destroyGraphicsLayers()
@@ -293,18 +291,6 @@ void CompositedDeprecatedPaintLayerMapping::updateIsRootForIsolatedGroup()
m_graphicsLayer->setIsRootForIsolatedGroup(isolate);
}
-void CompositedDeprecatedPaintLayerMapping::updateScrollBlocksOn(const ComputedStyle& style)
-{
- // Note that blink determines the default scroll blocking policy, even
- // when the scroll-blocks-on CSS feature isn't enabled.
- WebScrollBlocksOn blockingMode = WebScrollBlocksOnStartTouch | WebScrollBlocksOnWheelEvent;
-
- if (RuntimeEnabledFeatures::cssScrollBlocksOnEnabled())
- blockingMode = style.scrollBlocksOn();
-
- m_graphicsLayer->setScrollBlocksOn(blockingMode);
-}
-
void CompositedDeprecatedPaintLayerMapping::updateContentsOpaque()
{
ASSERT(m_isMainFrameLayoutViewLayer || !m_backgroundLayer);
@@ -735,8 +721,6 @@ void CompositedDeprecatedPaintLayerMapping::updateGraphicsLayerGeometry(const De
updateScrollParent(scrollParent());
registerScrollingLayers();
- updateScrollBlocksOn(layoutObject()->styleRef());
-
updateCompositingReasons();
}

Powered by Google App Engine
This is Rietveld 408576698