| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index f9478a3f04e846c92de94aeb9eb213d1377e9203..d7b34e691b3d190906e36234d1bdc8f9c2534741 100644
|
| --- a/Source/core/testing/Internals.cpp
|
| +++ b/Source/core/testing/Internals.cpp
|
| @@ -1884,6 +1884,8 @@ PassRefPtrWillBeRawPtr<ClientRectList> Internals::repaintRects(Element* element,
|
| return nullptr;
|
| }
|
|
|
| + element->document().frame()->view()->updateLayoutAndStyleForPainting();
|
| +
|
| if (RenderLayer* layer = getRenderLayerForElement(element, exceptionState)) {
|
| if (layer->compositingState() == PaintsIntoOwnBacking) {
|
| OwnPtr<Vector<FloatRect> > rects = layer->collectTrackedRepaintRects();
|
|
|