| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index 65bd2e614f46fe1463efcd8805cd0b9aae2a3ed1..d75f2f1835972f65e6e215e39f899809d059f204 100644
|
| --- a/Source/core/testing/Internals.cpp
|
| +++ b/Source/core/testing/Internals.cpp
|
| @@ -1646,7 +1646,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);
|
| }
|
|
|
| @@ -1771,6 +1773,8 @@ String Internals::layerTreeAsText(Document* document, unsigned flags, ExceptionS
|
| return String();
|
| }
|
|
|
| + document->view()->updateLayoutAndStyleForPainting();
|
| +
|
| return document->frame()->layerTreeAsText(flags);
|
| }
|
|
|
|
|