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

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

Issue 354223002: Add methods to RenderLayer to get at the painting or scrolling graphics layers, if present. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Edited comments. Created 6 years, 6 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
« no previous file with comments | « no previous file | Source/core/rendering/RenderLayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/scrolling/ScrollingCoordinator.cpp
diff --git a/Source/core/page/scrolling/ScrollingCoordinator.cpp b/Source/core/page/scrolling/ScrollingCoordinator.cpp
index b66c1c951c1ca22e60114962889ea9248d980301..fd848058bf230c34d2933c1a20f4a42249e872dc 100644
--- a/Source/core/page/scrolling/ScrollingCoordinator.cpp
+++ b/Source/core/page/scrolling/ScrollingCoordinator.cpp
@@ -456,16 +456,7 @@ static void projectRectsToGraphicsLayerSpaceRecursive(
return;
// Find the appropriate GraphicsLayer for the composited RenderLayer.
- GraphicsLayer* graphicsLayer;
- if (compositedLayer->compositingState() == PaintsIntoGroupedBacking) {
- graphicsLayer = compositedLayer->groupedMapping()->squashingLayer();
- } else {
- ASSERT(compositedLayer->hasCompositedLayerMapping());
- CompositedLayerMappingPtr compositedLayerMapping = compositedLayer->compositedLayerMapping();
- graphicsLayer = compositedLayerMapping->scrollingContentsLayer();
- if (!graphicsLayer)
- graphicsLayer = compositedLayerMapping->mainGraphicsLayer();
- }
+ GraphicsLayer* graphicsLayer = compositedLayer->graphicsLayerBackingForScrolling();
GraphicsLayerHitTestRects::iterator glIter = graphicsRects.find(graphicsLayer);
Vector<LayoutRect>* glRects;
« no previous file with comments | « no previous file | Source/core/rendering/RenderLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698