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

Unified Diff: Source/core/rendering/RenderLayer.h

Issue 103213002: position:sticky should stick for the enclosing overflow ancestor (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase patch + updated by review comments. Created 6 years, 11 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/rendering/RenderLayer.h
diff --git a/Source/core/rendering/RenderLayer.h b/Source/core/rendering/RenderLayer.h
index 7215cef58c661eae6c628131558cf49299e3d741..570c458dbc59212c86f54712754d0baf0aabe9f8 100644
--- a/Source/core/rendering/RenderLayer.h
+++ b/Source/core/rendering/RenderLayer.h
@@ -79,6 +79,7 @@ class Scrollbar;
class TransformationMatrix;
enum BorderRadiusClippingRule { IncludeSelfForBorderRadius, DoNotIncludeSelfForBorderRadius };
+enum IncludeSelfOrNot { IncludeSelf, ExcludeSelf };
class RenderLayer {
public:
@@ -228,11 +229,13 @@ public:
// The layer relative to which clipping rects for this layer are computed.
RenderLayer* clippingRootForPainting() const;
+ RenderLayer* enclosingOverflowClipLayer(bool includeSelf = true) const;
Julien - ping for review 2014/01/08 15:31:45 You forgot to convert this function and its caller
ostap 2014/01/09 03:44:14 Sorry! Done.
+
// Enclosing compositing layer; if includeSelf is true, may return this.
- RenderLayer* enclosingCompositingLayer(bool includeSelf = true) const;
- RenderLayer* enclosingCompositingLayerForRepaint(bool includeSelf = true) const;
+ RenderLayer* enclosingCompositingLayer(IncludeSelfOrNot = IncludeSelf) const;
+ RenderLayer* enclosingCompositingLayerForRepaint(IncludeSelfOrNot = IncludeSelf) const;
// Ancestor compositing layer, excluding this.
- RenderLayer* ancestorCompositingLayer() const { return enclosingCompositingLayer(false); }
+ RenderLayer* ancestorCompositingLayer() const { return enclosingCompositingLayer(ExcludeSelf); }
// Ancestor composited scrolling layer at or above our containing block.
RenderLayer* ancestorCompositedScrollingLayer() const;
@@ -240,7 +243,7 @@ public:
// Ancestor scrolling layer at or above our containing block.
RenderLayer* ancestorScrollingLayer() const;
- RenderLayer* enclosingFilterLayer(bool includeSelf = true) const;
+ RenderLayer* enclosingFilterLayer(IncludeSelfOrNot = IncludeSelf) const;
RenderLayer* enclosingFilterRepaintLayer() const;
bool hasAncestorWithFilterOutsets() const;

Powered by Google App Engine
This is Rietveld 408576698