From: simon.fraser@apple.com Date: Fri, 16 Nov 2018 05:39:26 +0000 (+0000) Subject: Add layout test for iframe contents disappearing on view unparent/reparent X-Git-Url: http://git.webkit.org/?p=WebKit-https.git;a=commitdiff_plain;h=618a2bfde780df04c73e14675cb2fc974d758b32 Add layout test for iframe contents disappearing on view unparent/reparent https://bugs.webkit.org/show_bug.cgi?id=191725 Reviewed by Alex Christensen. This test tests the changes made in r238229. * compositing/iframes/remove-reinsert-webview-with-iframe-expected.txt: Added. * compositing/iframes/remove-reinsert-webview-with-iframe.html: Added. * platform/ios/compositing/iframes/remove-reinsert-webview-with-iframe-expected.txt: Added. * platform/mac-wk1/compositing/iframes/remove-reinsert-webview-with-iframe-expected.txt: Added. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@238271 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog index f18be00..e996394 100644 --- a/LayoutTests/ChangeLog +++ b/LayoutTests/ChangeLog @@ -1,5 +1,19 @@ 2018-11-15 Simon Fraser + Add layout test for iframe contents disappearing on view unparent/reparent + https://bugs.webkit.org/show_bug.cgi?id=191725 + + Reviewed by Alex Christensen. + + This test tests the changes made in r238229. + + * compositing/iframes/remove-reinsert-webview-with-iframe-expected.txt: Added. + * compositing/iframes/remove-reinsert-webview-with-iframe.html: Added. + * platform/ios/compositing/iframes/remove-reinsert-webview-with-iframe-expected.txt: Added. + * platform/mac-wk1/compositing/iframes/remove-reinsert-webview-with-iframe-expected.txt: Added. + +2018-11-15 Simon Fraser + REGRESSION (r238090) Composited iframes that resize from zero don't show https://bugs.webkit.org/show_bug.cgi?id=191733 rdar://problem/46107764 diff --git a/LayoutTests/compositing/iframes/remove-reinsert-webview-with-iframe-expected.txt b/LayoutTests/compositing/iframes/remove-reinsert-webview-with-iframe-expected.txt new file mode 100644 index 0000000..c984e3b --- /dev/null +++ b/LayoutTests/compositing/iframes/remove-reinsert-webview-with-iframe-expected.txt @@ -0,0 +1,126 @@ + +(GraphicsLayer + (anchor 0.00 0.00) + (bounds 800.00 600.00) + (children 1 + (GraphicsLayer + (bounds 800.00 600.00) + (contentsOpaque 1) + (tile cache coverage 0, 0 800 x 600) + (tile size 800 x 600) + (top left tile 0, 0 tiles grid 1 x 1) + (in window 1) + (children 1 + (GraphicsLayer + (position 8.00 8.00) + (bounds 520.00 328.00) + (transform [1.00 0.00 0.00 0.00] [0.00 1.00 0.00 0.00] [0.00 0.00 1.00 0.00] [0.00 0.00 1.00 1.00]) + (children 1 + (GraphicsLayer + (position 10.00 10.00) + (bounds 404.00 304.00) + (drawsContent 1) + (children 1 + (GraphicsLayer + (position 2.00 2.00) + (children 1 + (GraphicsLayer + (anchor 0.00 0.00) + (bounds 400.00 300.00) + (children 1 + (GraphicsLayer + (children 1 + (GraphicsLayer + (anchor 0.00 0.00) + (bounds 400.00 300.00) + (children 1 + (GraphicsLayer + (bounds 400.00 300.00) + (drawsContent 1) + (children 1 + (GraphicsLayer + (position 18.00 10.00) + (bounds 210.00 210.00) + (contentsOpaque 1) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) +) +(GraphicsLayer + (anchor 0.00 0.00) + (bounds 800.00 600.00) + (children 1 + (GraphicsLayer + (bounds 800.00 600.00) + (contentsOpaque 1) + (tile cache coverage 0, 0 800 x 600) + (tile size 800 x 600) + (top left tile 0, 0 tiles grid 1 x 1) + (in window 1) + (children 1 + (GraphicsLayer + (position 8.00 8.00) + (bounds 520.00 328.00) + (transform [1.00 0.00 0.00 0.00] [0.00 1.00 0.00 0.00] [0.00 0.00 1.00 0.00] [0.00 0.00 1.00 1.00]) + (children 1 + (GraphicsLayer + (position 10.00 10.00) + (bounds 404.00 304.00) + (drawsContent 1) + (children 1 + (GraphicsLayer + (position 2.00 2.00) + (children 1 + (GraphicsLayer + (anchor 0.00 0.00) + (bounds 400.00 300.00) + (children 1 + (GraphicsLayer + (children 1 + (GraphicsLayer + (anchor 0.00 0.00) + (bounds 400.00 300.00) + (children 1 + (GraphicsLayer + (bounds 400.00 300.00) + (drawsContent 1) + (children 1 + (GraphicsLayer + (position 18.00 10.00) + (bounds 210.00 210.00) + (contentsOpaque 1) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) +) + diff --git a/LayoutTests/compositing/iframes/remove-reinsert-webview-with-iframe.html b/LayoutTests/compositing/iframes/remove-reinsert-webview-with-iframe.html new file mode 100644 index 0000000..67597e3 --- /dev/null +++ b/LayoutTests/compositing/iframes/remove-reinsert-webview-with-iframe.html @@ -0,0 +1,85 @@ + + + + + + + + +
+ +
+ +
Layer tree goes here
+
Layer tree goes here
+ + diff --git a/LayoutTests/platform/ios/compositing/iframes/remove-reinsert-webview-with-iframe-expected.txt b/LayoutTests/platform/ios/compositing/iframes/remove-reinsert-webview-with-iframe-expected.txt new file mode 100644 index 0000000..3f5cb63 --- /dev/null +++ b/LayoutTests/platform/ios/compositing/iframes/remove-reinsert-webview-with-iframe-expected.txt @@ -0,0 +1,126 @@ + +(GraphicsLayer + (anchor 0.00 0.00) + (bounds 800.00 600.00) + (children 1 + (GraphicsLayer + (bounds 800.00 600.00) + (contentsOpaque 1) + (tile cache coverage 0, 0 800 x 600) + (tile size 800 x 600) + (top left tile 0, 0 tiles grid 1 x 1) + (in window 1) + (children 1 + (GraphicsLayer + (position 8.00 8.00) + (bounds 520.00 329.00) + (transform [1.00 0.00 0.00 0.00] [0.00 1.00 0.00 0.00] [0.00 0.00 1.00 0.00] [0.00 0.00 1.00 1.00]) + (children 1 + (GraphicsLayer + (position 10.00 10.00) + (bounds 404.00 304.00) + (drawsContent 1) + (children 1 + (GraphicsLayer + (position 2.00 2.00) + (children 1 + (GraphicsLayer + (anchor 0.00 0.00) + (bounds 400.00 300.00) + (children 1 + (GraphicsLayer + (children 1 + (GraphicsLayer + (anchor 0.00 0.00) + (bounds 400.00 300.00) + (children 1 + (GraphicsLayer + (bounds 400.00 300.00) + (drawsContent 1) + (children 1 + (GraphicsLayer + (position 18.00 10.00) + (bounds 210.00 210.00) + (contentsOpaque 1) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) +) +(GraphicsLayer + (anchor 0.00 0.00) + (bounds 800.00 600.00) + (children 1 + (GraphicsLayer + (bounds 800.00 600.00) + (contentsOpaque 1) + (tile cache coverage 0, 0 800 x 600) + (tile size 800 x 600) + (top left tile 0, 0 tiles grid 1 x 1) + (in window 1) + (children 1 + (GraphicsLayer + (position 8.00 8.00) + (bounds 520.00 329.00) + (transform [1.00 0.00 0.00 0.00] [0.00 1.00 0.00 0.00] [0.00 0.00 1.00 0.00] [0.00 0.00 1.00 1.00]) + (children 1 + (GraphicsLayer + (position 10.00 10.00) + (bounds 404.00 304.00) + (drawsContent 1) + (children 1 + (GraphicsLayer + (position 2.00 2.00) + (children 1 + (GraphicsLayer + (anchor 0.00 0.00) + (bounds 400.00 300.00) + (children 1 + (GraphicsLayer + (children 1 + (GraphicsLayer + (anchor 0.00 0.00) + (bounds 400.00 300.00) + (children 1 + (GraphicsLayer + (bounds 400.00 300.00) + (drawsContent 1) + (children 1 + (GraphicsLayer + (position 18.00 10.00) + (bounds 210.00 210.00) + (contentsOpaque 1) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) +) + diff --git a/LayoutTests/platform/mac-wk1/compositing/iframes/remove-reinsert-webview-with-iframe-expected.txt b/LayoutTests/platform/mac-wk1/compositing/iframes/remove-reinsert-webview-with-iframe-expected.txt new file mode 100644 index 0000000..b80a990 --- /dev/null +++ b/LayoutTests/platform/mac-wk1/compositing/iframes/remove-reinsert-webview-with-iframe-expected.txt @@ -0,0 +1,118 @@ + +(GraphicsLayer + (anchor 0.00 0.00) + (bounds 800.00 600.00) + (children 1 + (GraphicsLayer + (bounds 800.00 600.00) + (contentsOpaque 1) + (children 1 + (GraphicsLayer + (position 8.00 8.00) + (bounds 520.00 328.00) + (transform [1.00 0.00 0.00 0.00] [0.00 1.00 0.00 0.00] [0.00 0.00 1.00 0.00] [0.00 0.00 1.00 1.00]) + (children 1 + (GraphicsLayer + (position 10.00 10.00) + (bounds 404.00 304.00) + (drawsContent 1) + (children 1 + (GraphicsLayer + (position 2.00 2.00) + (children 1 + (GraphicsLayer + (anchor 0.00 0.00) + (bounds 400.00 300.00) + (children 1 + (GraphicsLayer + (children 1 + (GraphicsLayer + (anchor 0.00 0.00) + (bounds 400.00 300.00) + (children 1 + (GraphicsLayer + (bounds 400.00 300.00) + (drawsContent 1) + (children 1 + (GraphicsLayer + (position 18.00 10.00) + (bounds 210.00 210.00) + (contentsOpaque 1) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) +) +(GraphicsLayer + (anchor 0.00 0.00) + (bounds 800.00 600.00) + (children 1 + (GraphicsLayer + (bounds 800.00 600.00) + (contentsOpaque 1) + (children 1 + (GraphicsLayer + (position 8.00 8.00) + (bounds 520.00 328.00) + (transform [1.00 0.00 0.00 0.00] [0.00 1.00 0.00 0.00] [0.00 0.00 1.00 0.00] [0.00 0.00 1.00 1.00]) + (children 1 + (GraphicsLayer + (position 10.00 10.00) + (bounds 404.00 304.00) + (drawsContent 1) + (children 1 + (GraphicsLayer + (position 2.00 2.00) + (children 1 + (GraphicsLayer + (anchor 0.00 0.00) + (bounds 400.00 300.00) + (children 1 + (GraphicsLayer + (children 1 + (GraphicsLayer + (anchor 0.00 0.00) + (bounds 400.00 300.00) + (children 1 + (GraphicsLayer + (bounds 400.00 300.00) + (drawsContent 1) + (children 1 + (GraphicsLayer + (position 18.00 10.00) + (bounds 210.00 210.00) + (contentsOpaque 1) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) +) +