If a test calls layoutTestController.layerTreeAsText() to fetch the layer tree, we should do any pending layouts and make sure the layer tree is up-to-date.
Created attachment 60988 [details] Patch
http://trac.webkit.org/changeset/62892
Fix was bad :(
diff --git a/WebCore/page/Frame.cpp b/WebCore/page/Frame.cpp index b3c01eb..5c878b2 100644 --- a/WebCore/page/Frame.cpp +++ b/WebCore/page/Frame.cpp @@ -1602,6 +1602,8 @@ IntRect Frame::tiledBackingStoreVisibleRect() String Frame::layerTreeAsText() const { #if USE(ACCELERATED_COMPOSITING) + document()->updateLayout(); + if (!contentRenderer()) return String(); @@ -1609,8 +1611,6 @@ String Frame::layerTreeAsText() const if (!rootLayer) return String(); - document()->updateLayout(); - return rootLayer->layerTreeAsText(); #else return String();
Created attachment 61117 [details] Patch
http://trac.webkit.org/changeset/63022