Index: Source/core/rendering/RenderLayer.h |
diff --git a/Source/core/rendering/RenderLayer.h b/Source/core/rendering/RenderLayer.h |
index 75632cdb879cf08b88121377de8d1fbbaa423d4c..435b223240f8ff0f1050bbd15cce6d015314f2d6 100644 |
--- a/Source/core/rendering/RenderLayer.h |
+++ b/Source/core/rendering/RenderLayer.h |
@@ -74,6 +74,7 @@ class RenderStyle; |
class TransformationMatrix; |
enum BorderRadiusClippingRule { IncludeSelfForBorderRadius, DoNotIncludeSelfForBorderRadius }; |
+enum IncludeSelfOrNot { IncludeSelf, ExcludeSelf }; |
class RenderLayer { |
public: |
@@ -220,11 +221,13 @@ public: |
// The layer relative to which clipping rects for this layer are computed. |
RenderLayer* clippingRootForPainting() const; |
+ RenderLayer* enclosingOverflowClipLayer(IncludeSelfOrNot = IncludeSelf) const; |
+ |
// 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; |
@@ -232,7 +235,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; |