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

Unified Diff: Source/WebCore/page/scrolling/ScrollingCoordinator.cpp

Issue 13462003: Add support for accelerated fixed root background (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@background-attachment-fixed2
Patch Set: Adding a FIXME for a bit that'll need fixing. Created 7 years, 8 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/WebCore/page/scrolling/ScrollingCoordinator.cpp
diff --git a/Source/WebCore/page/scrolling/ScrollingCoordinator.cpp b/Source/WebCore/page/scrolling/ScrollingCoordinator.cpp
index b0fe6878aebcef7a337ecd758ca4540aea95367a..b2dc39baa9cac4a137fc508ce47b68db1237ab34 100644
--- a/Source/WebCore/page/scrolling/ScrollingCoordinator.cpp
+++ b/Source/WebCore/page/scrolling/ScrollingCoordinator.cpp
@@ -122,6 +122,12 @@ void ScrollingCoordinator::frameViewLayoutUpdated(FrameView* frameView)
scrollLayer->setBounds(frameView->contentsSize());
}
+void ScrollingCoordinator::fixedRootBackgroundLayerDidChange(GraphicsLayer* backgroundLayer)
+{
+ if (WebLayer* webBackgroundLayer = scrollingWebLayerForGraphicsLayer(backgroundLayer))
+ webBackgroundLayer->setPositionConstraint(WebLayerPositionConstraint::fixedPosition(false, false));
+}
+
void ScrollingCoordinator::setLayerIsContainerForFixedPositionLayers(GraphicsLayer* layer, bool enable)
{
if (WebLayer* scrollableLayer = scrollingWebLayerForGraphicsLayer(layer))

Powered by Google App Engine
This is Rietveld 408576698