Chromium Code Reviews| Index: Source/core/paint/LayerPainter.h |
| diff --git a/Source/core/paint/LayerPainter.h b/Source/core/paint/LayerPainter.h |
| index fae2c89d0581be795d36203ec145b04166aca746..efd63ed56f00f5c8e4371c33f7fb2ea49320b292 100644 |
| --- a/Source/core/paint/LayerPainter.h |
| +++ b/Source/core/paint/LayerPainter.h |
| @@ -30,7 +30,16 @@ public: |
| void paintOverlayScrollbars(GraphicsContext*, const LayoutRect& damageRect, PaintBehavior, RenderObject* paintingRoot = 0); |
| enum BorderRadiusClippingRule { IncludeSelfForBorderRadius, DoNotIncludeSelfForBorderRadius }; |
| - static void applyRoundedRectClips(RenderLayer&, const LayerPaintingInfo&, GraphicsContext*, PaintLayerFlags, ClipRecorder&, BorderRadiusClippingRule = IncludeSelfForBorderRadius); |
| + |
| + // Set rounded clip rectangles defined by border radii all the way from the LayerPaintingInfo |
|
chrishtr
2014/11/14 23:22:26
Aside, unrelated to your CL: why are we setting it
mstensho (USE GERRIT)
2014/11/14 23:36:58
Both rectangular and rounded clip rectangles are a
|
| + // "root" layer down to the specified layer (or the parent of said layer, in case |
| + // BorderRadiusClippingRule says to skip self). fragmentOffset is used for multicol, to specify |
| + // the translation required to get from flow thread coordinates to visual coordinates for a |
| + // certain column. |
| + // FIXME: The BorderRadiusClippingRule parameter is really useless now. If we want to skip self, |
| + // why not just supply the parent layer as the first parameter instead? |
| + static void applyRoundedRectClips(RenderLayer&, const LayerPaintingInfo&, GraphicsContext*, const LayoutPoint& fragmentOffset, PaintLayerFlags, ClipRecorder&, BorderRadiusClippingRule = IncludeSelfForBorderRadius); |
| + |
| static void beginTransparencyLayers(GraphicsContext*, RenderLayer&, const RenderLayer* rootLayer, const LayoutRect& paintDirtyRect, const LayoutSize& subPixelAccumulation, PaintBehavior); |
| private: |