void RenderLayerClipper::clearClipRectsIncludingDescendants()
{
- // FIXME: it's not clear how this layer not having clip rects guarantees that no descendants have any.
- if (!m_cache)
- return;
-
m_cache = nullptr;
for (RenderLayer* layer = m_renderer.layer()->firstChild(); layer; layer = layer->nextSibling())
void RenderLayerClipper::clearClipRectsIncludingDescendants(ClipRectsCacheSlot cacheSlot)
{
- // FIXME: it's not clear how this layer not having clip rects guarantees that no descendants have any.
- if (!m_cache)
- return;
-
- m_cache->clear(cacheSlot);
+ if (m_cache)
+ m_cache->clear(cacheSlot);
for (RenderLayer* layer = m_renderer.layer()->firstChild(); layer; layer = layer->nextSibling())
layer->clipper().clearClipRectsIncludingDescendants(cacheSlot);