Index: Source/core/paint/LayerPainter.h |
diff --git a/Source/core/paint/LayerPainter.h b/Source/core/paint/LayerPainter.h |
index 495c6dc5f871ef3742b85a4903c0dceccd2dbc16..82412b3d15a3536dcb43ec87be082fb438c656bf 100644 |
--- a/Source/core/paint/LayerPainter.h |
+++ b/Source/core/paint/LayerPainter.h |
@@ -16,6 +16,8 @@ class RenderLayer; |
class LayerPainter { |
public: |
+ enum FragmentPolicy { AllowMultipleFragments, ForceSingleFragment }; |
+ |
LayerPainter(RenderLayer& renderLayer) : m_renderLayer(renderLayer) { } |
// The paint() method paints the layers that intersect the damage rect from back to front. |
@@ -24,14 +26,14 @@ public: |
// paintLayer() assumes that the caller will clip to the bounds of the painting dirty if necessary. |
void paintLayer(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags); |
// paintLayerContents() assumes that the caller will clip to the bounds of the painting dirty rect if necessary. |
- void paintLayerContents(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags); |
+ void paintLayerContents(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags, FragmentPolicy = AllowMultipleFragments); |
void paintOverlayScrollbars(GraphicsContext*, const LayoutRect& damageRect, PaintBehavior, RenderObject* paintingRoot = 0); |
private: |
enum ClipState { HasNotClipped, HasClipped }; |
- void paintLayerContentsAndReflection(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags); |
+ void paintLayerContentsAndReflection(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags, FragmentPolicy = AllowMultipleFragments); |
void paintLayerWithTransform(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags); |
void paintFragmentByApplyingTransform(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags, const LayoutPoint& fragmentTranslation); |