Index: Source/core/rendering/RenderLayer.h |
diff --git a/Source/core/rendering/RenderLayer.h b/Source/core/rendering/RenderLayer.h |
index 9a55d8e62b716157c0c9879df8c8fef34616b880..63a73d268dc804e2c547ffb41f0c7362a2c21b96 100644 |
--- a/Source/core/rendering/RenderLayer.h |
+++ b/Source/core/rendering/RenderLayer.h |
@@ -516,10 +516,13 @@ public: |
return m_hasSelfPaintingLayerDescendant; |
} |
LayoutRect paintingExtent(const RenderLayer* rootLayer, const LayoutRect& paintDirtyRect, const LayoutSize& subPixelAccumulation, PaintBehavior); |
- void collectFragments(LayerFragments&, const RenderLayer* rootLayer, const LayoutRect& dirtyRect, |
- ClipRectsCacheSlot, OverlayScrollbarSizeRelevancy inOverlayScrollbarSizeRelevancy = IgnoreOverlayScrollbarSize, |
- ShouldRespectOverflowClip = RespectOverflowClip, const LayoutPoint* offsetFromRoot = 0, |
- const LayoutSize& subPixelAccumulation = LayoutSize(), const LayoutRect* layerBoundingBox = 0); |
+ |
+ enum DirtyRectIntersectionResult { |
+ NotIntersectingDirtyRect, |
+ IntersectingDirtyRect |
+ }; |
+ // FIXME: insane number of parameters. Should we introduce a CollectFragmentsContext or something? |
+ void collectFragments(LayerFragments&, DirtyRectIntersectionResult*, const RenderLayer* rootLayer, const LayoutRect& dirtyRect, ClipRectsCacheSlot, OverlayScrollbarSizeRelevancy inOverlayScrollbarSizeRelevancy = IgnoreOverlayScrollbarSize, ShouldRespectOverflowClip = RespectOverflowClip, const LayoutPoint* offsetFromRoot = 0, const LayoutSize& subPixelAccumulation = LayoutSize(), const LayoutRect* layerBoundingBox = 0); |
LayoutPoint renderBoxLocation() const { return renderer()->isBox() ? toRenderBox(renderer())->location() : LayoutPoint(); } |