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

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: Assert that the compositor is up to date in layerTreeAsText 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
« no previous file with comments | « Source/core/rendering/compositing/RenderLayerCompositor.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « Source/core/rendering/compositing/RenderLayerCompositor.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698