haikuwebkit/LayoutTests/fullscreen/full-screen-render-inline.html

35 lines
1001 B
HTML
Raw Permalink Normal View History

Exiting fullscreen shouldn't crash if the element that was fullscreened had associated anonymous blocks. https://bugs.webkit.org/show_bug.cgi?id=68503 Source/WebCore: Patch by Jeremy Apthorp <jeremya@chromium.org> on 2011-10-10 Reviewed by Simon Fraser. Test: fullscreen/full-screen-render-inline.html Test: fullscreen/parent-flow-inline-with-block-child.html * rendering/RenderBlock.cpp: (WebCore::RenderBlock::moveChildTo): (WebCore::RenderBlock::moveChildrenTo): * rendering/RenderBlock.h: (WebCore::RenderBlock::moveChildTo): (WebCore::RenderBlock::moveAllChildrenTo): (WebCore::RenderBlock::moveChildrenTo): * rendering/RenderFullScreen.cpp: (RenderFullScreen::unwrapRenderer): Move all children back to the parent, not just the firstChild. LayoutTests: When exiting fullscreen, if the child of the RenderFullScreen is a block and the parent has inline flow elements, the parent's children should be made non-inline before adding the fullscreened element back to the parent. Patch by Jeremy Apthorp <jeremya@chromium.org> on 2011-10-10 Reviewed by Simon Fraser. * fullscreen/full-screen-render-inline.html: Added. * fullscreen/full-screen-render-inline-expected.png: Added. * fullscreen/full-screen-render-inline-expected.txt: Added. * fullscreen/parent-flow-inline-with-block-child.html: Added. * fullscreen/parent-flow-inline-with-block-child-expected.png: Added. * fullscreen/parent-flow-inline-with-block-child-expected.txt: Added. Canonical link: https://commits.webkit.org/85828@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@97088 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-10-10 21:31:14 +00:00
<style>
body {
font-family: ahem;
-webkit-font-smoothing: none;
}
</style>
<summary>a<span>b<div>c</div>d</span>e</summary>
<script>
if ("webkitRequestFullScreen" in Element.prototype) {
Fonts, fullscreen, gamepad, and html5lib tests should use testRunner instead of layoutTestController https://bugs.webkit.org/show_bug.cgi?id=88959 Reviewed by Darin Adler. * fonts/valid-standard-font.html: * fullscreen/anonymous-block-merge-crash.html: * fullscreen/full-screen-element-stack.html: * fullscreen/full-screen-frameset.html: * fullscreen/full-screen-iframe-zIndex.html: * fullscreen/full-screen-keyboard-disabled.html: * fullscreen/full-screen-keyboard-enabled.html: * fullscreen/full-screen-remove-ancestor-during-transition.html: * fullscreen/full-screen-remove-sibling.html: * fullscreen/full-screen-render-inline.html: * fullscreen/full-screen-request-rejected.html: * fullscreen/full-screen-request-removed.html: * fullscreen/full-screen-restrictions.html: * fullscreen/full-screen-stacking-context.html: * fullscreen/full-screen-test.js: (runWithKeyDown): (endTest): * fullscreen/full-screen-zIndex-after.html: * fullscreen/full-screen-zIndex.html: * fullscreen/non-ancestor-iframe.html: * fullscreen/parent-flow-inline-with-block-child.html: * fullscreen/video-controls-override.html: * html5lib/resources/runner.js: (run): * html5lib/webkit-resumer.html: * platform/gtk/fonts/custom-font-missing-glyphs.html: * platform/gtk/fonts/font-face-with-complex-text.html: * platform/gtk/fonts/font-family-fallback.html: * platform/gtk/fonts/synthetic-oblique-positioning.html: Canonical link: https://commits.webkit.org/106812@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@120190 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-06-13 12:34:26 +00:00
if (window.testRunner)
testRunner.waitUntilDone();
Exiting fullscreen shouldn't crash if the element that was fullscreened had associated anonymous blocks. https://bugs.webkit.org/show_bug.cgi?id=68503 Source/WebCore: Patch by Jeremy Apthorp <jeremya@chromium.org> on 2011-10-10 Reviewed by Simon Fraser. Test: fullscreen/full-screen-render-inline.html Test: fullscreen/parent-flow-inline-with-block-child.html * rendering/RenderBlock.cpp: (WebCore::RenderBlock::moveChildTo): (WebCore::RenderBlock::moveChildrenTo): * rendering/RenderBlock.h: (WebCore::RenderBlock::moveChildTo): (WebCore::RenderBlock::moveAllChildrenTo): (WebCore::RenderBlock::moveChildrenTo): * rendering/RenderFullScreen.cpp: (RenderFullScreen::unwrapRenderer): Move all children back to the parent, not just the firstChild. LayoutTests: When exiting fullscreen, if the child of the RenderFullScreen is a block and the parent has inline flow elements, the parent's children should be made non-inline before adding the fullscreened element back to the parent. Patch by Jeremy Apthorp <jeremya@chromium.org> on 2011-10-10 Reviewed by Simon Fraser. * fullscreen/full-screen-render-inline.html: Added. * fullscreen/full-screen-render-inline-expected.png: Added. * fullscreen/full-screen-render-inline-expected.txt: Added. * fullscreen/parent-flow-inline-with-block-child.html: Added. * fullscreen/parent-flow-inline-with-block-child-expected.png: Added. * fullscreen/parent-flow-inline-with-block-child-expected.txt: Added. Canonical link: https://commits.webkit.org/85828@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@97088 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-10-10 21:31:14 +00:00
document.body.offsetTop;
var span = document.getElementsByTagName('span')[0];
var fullscreenChangeEvent = function(event) {
if (document.webkitIsFullScreen) {
setTimeout(function () {
document.webkitCancelFullScreen();
}, 0)
} else {
Fonts, fullscreen, gamepad, and html5lib tests should use testRunner instead of layoutTestController https://bugs.webkit.org/show_bug.cgi?id=88959 Reviewed by Darin Adler. * fonts/valid-standard-font.html: * fullscreen/anonymous-block-merge-crash.html: * fullscreen/full-screen-element-stack.html: * fullscreen/full-screen-frameset.html: * fullscreen/full-screen-iframe-zIndex.html: * fullscreen/full-screen-keyboard-disabled.html: * fullscreen/full-screen-keyboard-enabled.html: * fullscreen/full-screen-remove-ancestor-during-transition.html: * fullscreen/full-screen-remove-sibling.html: * fullscreen/full-screen-render-inline.html: * fullscreen/full-screen-request-rejected.html: * fullscreen/full-screen-request-removed.html: * fullscreen/full-screen-restrictions.html: * fullscreen/full-screen-stacking-context.html: * fullscreen/full-screen-test.js: (runWithKeyDown): (endTest): * fullscreen/full-screen-zIndex-after.html: * fullscreen/full-screen-zIndex.html: * fullscreen/non-ancestor-iframe.html: * fullscreen/parent-flow-inline-with-block-child.html: * fullscreen/video-controls-override.html: * html5lib/resources/runner.js: (run): * html5lib/webkit-resumer.html: * platform/gtk/fonts/custom-font-missing-glyphs.html: * platform/gtk/fonts/font-face-with-complex-text.html: * platform/gtk/fonts/font-family-fallback.html: * platform/gtk/fonts/synthetic-oblique-positioning.html: Canonical link: https://commits.webkit.org/106812@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@120190 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-06-13 12:34:26 +00:00
if (window.testRunner)
testRunner.notifyDone();
Exiting fullscreen shouldn't crash if the element that was fullscreened had associated anonymous blocks. https://bugs.webkit.org/show_bug.cgi?id=68503 Source/WebCore: Patch by Jeremy Apthorp <jeremya@chromium.org> on 2011-10-10 Reviewed by Simon Fraser. Test: fullscreen/full-screen-render-inline.html Test: fullscreen/parent-flow-inline-with-block-child.html * rendering/RenderBlock.cpp: (WebCore::RenderBlock::moveChildTo): (WebCore::RenderBlock::moveChildrenTo): * rendering/RenderBlock.h: (WebCore::RenderBlock::moveChildTo): (WebCore::RenderBlock::moveAllChildrenTo): (WebCore::RenderBlock::moveChildrenTo): * rendering/RenderFullScreen.cpp: (RenderFullScreen::unwrapRenderer): Move all children back to the parent, not just the firstChild. LayoutTests: When exiting fullscreen, if the child of the RenderFullScreen is a block and the parent has inline flow elements, the parent's children should be made non-inline before adding the fullscreened element back to the parent. Patch by Jeremy Apthorp <jeremya@chromium.org> on 2011-10-10 Reviewed by Simon Fraser. * fullscreen/full-screen-render-inline.html: Added. * fullscreen/full-screen-render-inline-expected.png: Added. * fullscreen/full-screen-render-inline-expected.txt: Added. * fullscreen/parent-flow-inline-with-block-child.html: Added. * fullscreen/parent-flow-inline-with-block-child-expected.png: Added. * fullscreen/parent-flow-inline-with-block-child-expected.txt: Added. Canonical link: https://commits.webkit.org/85828@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@97088 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-10-10 21:31:14 +00:00
}
};
document.addEventListener('webkitfullscreenchange', fullscreenChangeEvent);
document.addEventListener('keydown', function () {
span.webkitRequestFullScreen();
});
if (window.eventSender)
eventSender.keyDown('a');
}
</script>