Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h |
| diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h |
| index a9c13519cf420c4563f226f3eac8055206676a44..5292b3de5f112e6a3f265022a5d45f26025b94c4 100644 |
| --- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h |
| +++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h |
| @@ -488,15 +488,14 @@ class CORE_EXPORT CompositedLayerMapping final : public GraphicsLayerClient { |
| const GraphicsLayerPaintInfo&, |
| const Vector<GraphicsLayerPaintInfo>& layers); |
| - // Conservatively check that a border-radius clip does not clip a child. |
| + // Conservatively check that a sequence of border-radius clips do not clip |
| + // this layer. |
| // This is a fast approximate test. Depending on the shape of the child and |
| - // the size of the border radius, this method may return false when in fact |
| + // the size of the clips, this method may return false when in fact |
| // the child is not clipped. We accept the approximation because most border |
| // radii are small and the outcome is used to reduce the number of layers, |
| // not influence correctness. |
| - bool AncestorRoundedCornersWontClip( |
| - const LayoutBoxModelObject& child, |
| - const LayoutBoxModelObject& clipping_ancestor); |
| + bool AncestorRoundedCornersWontClip(const PaintLayer*); |
|
chrishtr
2017/06/12 19:58:46
Name this arg compositing_ancestor and add documen
Stephen Chennney
2017/06/12 20:41:53
Done.
|
| // Return true in |owningLayerIsClipped| iff |m_owningLayer|'s compositing |
| // ancestor is not a descendant (inclusive) of the clipping container for |