void RenderLayerClipper::getOrCalculateClipRects(const ClipRectsContext& context, ClipRects& clipRects) const { if (context.usesCache()) clipRects = *getClipRects(context); else calculateClipRects(context, clipRects); }
ClipRects* PaintLayerClipper::paintingClipRects(const PaintLayer* rootLayer, ShouldRespectOverflowClip respectOverflowClip, const LayoutSize& subpixelAccumulation) const { ClipRectsContext context(rootLayer, PaintingClipRects, IgnoreOverlayScrollbarSize, subpixelAccumulation); if (respectOverflowClip == IgnoreOverflowClip) context.setIgnoreOverflowClip(); return getClipRects(context); }