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

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

Issue 1114543004: Avoid creating ancestor clipping layers for scroll children (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Adding a layout test. Created 5 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/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.h
diff --git a/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.h b/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.h
index 40465ec92ca22f869f75741ab20bef8be418ae30..30a88b5479cf480ae1abc04915b29c79c2c09a64 100644
--- a/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.h
+++ b/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.h
@@ -239,7 +239,7 @@ private:
bool requiresScrollCornerLayer() const { return m_owningLayer.scrollableArea() && !m_owningLayer.scrollableArea()->scrollCornerAndResizerRect().isEmpty(); }
bool updateScrollingLayers(bool scrollingLayers);
void updateScrollParent(DeprecatedPaintLayer*);
- void updateClipParent();
+ void updateClipParent(DeprecatedPaintLayer* scrollParent);
bool updateSquashingLayers(bool needsSquashingLayers);
void updateDrawsContent();
void updateChildrenTransform();
@@ -292,7 +292,7 @@ private:
// Return true if |m_owningLayer|'s compositing ancestor is not a descendant (inclusive) of the
// clipping container for |m_owningLayer|.
- bool owningLayerClippedByLayerNotAboveCompositedAncestor();
+ bool owningLayerClippedByLayerNotAboveCompositedAncestor(DeprecatedPaintLayer* scrollParent);
DeprecatedPaintLayer& m_owningLayer;

Powered by Google App Engine
This is Rietveld 408576698