Chromium Code Reviews| 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; |