| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index 35e8ee2f5ac32dd40bc3d67d125827f1c6de25e6..f44a2837aee722ae1e1bec830d4ada1fde1a2118 100644
|
| --- a/Source/core/testing/Internals.cpp
|
| +++ b/Source/core/testing/Internals.cpp
|
| @@ -1647,7 +1647,9 @@ String Internals::layerTreeAsText(Document* document, ExceptionState& exceptionS
|
|
|
| String Internals::elementLayerTreeAsText(Element* element, ExceptionState& exceptionState) const
|
| {
|
| - DisableCompositingQueryAsserts disabler;
|
| + FrameView* frameView = element->document().view();
|
| + frameView->updateLayoutAndStyleForPainting();
|
| +
|
| return elementLayerTreeAsText(element, 0, exceptionState);
|
| }
|
|
|
| @@ -1772,6 +1774,8 @@ String Internals::layerTreeAsText(Document* document, unsigned flags, ExceptionS
|
| return String();
|
| }
|
|
|
| + document->view()->updateLayoutAndStyleForPainting();
|
| +
|
| return document->frame()->layerTreeAsText(flags);
|
| }
|
|
|
|
|