| Index: Source/core/rendering/RenderLayerRepainter.cpp
|
| diff --git a/Source/core/rendering/RenderLayerRepainter.cpp b/Source/core/rendering/RenderLayerRepainter.cpp
|
| index 8d33c3215fcc3431e5a6d7436c70f3586f3f4ebc..2927d585c94b297e3be98c80d7f90849f7644977 100644
|
| --- a/Source/core/rendering/RenderLayerRepainter.cpp
|
| +++ b/Source/core/rendering/RenderLayerRepainter.cpp
|
| @@ -152,10 +152,13 @@ void RenderLayerRepainter::repaintIncludingNonCompositingDescendants()
|
|
|
| void RenderLayerRepainter::repaintIncludingNonCompositingDescendantsInternal(const RenderLayerModelObject* repaintContainer)
|
| {
|
| - m_renderer.repaintUsingContainer(repaintContainer, pixelSnappedIntRect(m_renderer.computeRepaintRect()), InvalidationLayer);
|
| + m_renderer.repaintUsingContainer(repaintContainer, pixelSnappedIntRect(m_renderer.boundsRectForRepaint(repaintContainer)), InvalidationLayer);
|
| +
|
| + // Repaints can be issued during style recalc at present.
|
| + DisableCompositingQueryAsserts disabler;
|
|
|
| for (RenderLayer* curr = m_renderer.layer()->firstChild(); curr; curr = curr->nextSibling()) {
|
| - if (!curr->hasCompositedLayerMapping())
|
| + if (curr->compositingState() != PaintsIntoOwnBacking && curr->compositingState() != PaintsIntoGroupedBacking)
|
| curr->repainter().repaintIncludingNonCompositingDescendantsInternal(repaintContainer);
|
| }
|
| }
|
| @@ -170,7 +173,7 @@ LayoutRect RenderLayerRepainter::repaintRectIncludingNonCompositingDescendants()
|
|
|
| for (RenderLayer* child = m_renderer.layer()->firstChild(); child; child = child->nextSibling()) {
|
| // Don't include repaint rects for composited child layers; they will paint themselves and have a different origin.
|
| - if (child->hasCompositedLayerMapping())
|
| + if (child->compositingState() == PaintsIntoOwnBacking || child->compositingState() == PaintsIntoGroupedBacking)
|
| continue;
|
|
|
| repaintRect.unite(child->repainter().repaintRectIncludingNonCompositingDescendants());
|
|
|