RenderFullScreen needs to clear override sizes when exiting full screen
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Mar 2013 18:27:59 +0000 (18:27 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Mar 2013 18:27:59 +0000 (18:27 +0000)
commit00f9699b5c3eb64f61790caf6fa31cbdb2fa7f76
tree2ee13f374c618930714143e6aaa8c02a82dc21b9
parent9b77e6729a48ba5cb227203c555caa36b9b61b26
RenderFullScreen needs to clear override sizes when exiting full screen
https://bugs.webkit.org/show_bug.cgi?id=111775

Patch by Christian Biesinger <cbiesinger@chromium.org> on 2013-03-08
Reviewed by Ojan Vafai.

Source/WebCore:

Test: fullscreen/full-screen-with-flex-item.html

* rendering/RenderFullScreen.cpp:
(RenderFullScreen::unwrapRenderer):
RenderFullScreen is a flexbox, so it will potentially set override
sizes on its children while in fullscreen mode. When we exit
fullscreen mode, we need to clear this override size, otherwise the
the leftover override size may affect layout. See the testcase for an
example.

LayoutTests:

* fullscreen/full-screen-with-flex-item-expected.txt: Added.
* fullscreen/full-screen-with-flex-item.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@145241 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fullscreen/full-screen-with-flex-item-expected.txt [new file with mode: 0644]
LayoutTests/fullscreen/full-screen-with-flex-item.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderFullScreen.cpp