Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(993)

Unified Diff: Source/core/testing/Internals.cpp

Issue 202523004: Fully update compositing information for *layerTreeAsText calls (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698