, scrollbarRelevancy(relevancy)
, cacheSlot(slot)
, subPixelAccumulation(accumulation)
- , respectOverflowClip(RespectOverflowClip)
+ , respectOverflowClip(slot == PaintingClipRectsIgnoringOverflowClip ? IgnoreOverflowClip : RespectOverflowClip)
{
}
{
ASSERT(!usesCache() || cacheSlot == PaintingClipRects);
ASSERT(respectOverflowClip == RespectOverflowClip);
- cacheSlot = PaintingClipRectsIgnoringOverflowClip;
+ if (usesCache())
+ cacheSlot = PaintingClipRectsIgnoringOverflowClip;
respectOverflowClip = IgnoreOverflowClip;
}