Taking a visibility:hidden element full screen causes full screen window to disappear.
authorjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 May 2012 21:30:52 +0000 (21:30 +0000)
committerjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 May 2012 21:30:52 +0000 (21:30 +0000)
commitecbea815fb3bc013379ed9cea701cf17926e3ed2
tree1250eae241e9219052084351ceec047a7fd752c3
parent912f8cdc9a35d8b0cb387819a8cbe2c3703c3b82
Taking a visibility:hidden element full screen causes full screen window to disappear.
https://bugs.webkit.org/show_bug.cgi?id=85432

Reviewed by Maciej Stachowiak.

.:

* ManualTests/fullscreen/full-screen-zero-width.html: Added.

Source/WebKit/mac:

When given an initial or final frame with a zero width or height, return a rect representing
the entire screen, rather than a rect with a zero or infinite size. Doing otherwise will
confuse the window server when it's instructed to scale the full screen window to that size.

* WebView/WebFullScreenController.mm:
(windowFrameFromApparentFrames):

Source/WebKit2:

When given an initial or final frame with a zero width or height, return a rect representing
the entire screen, rather than a rect with a zero or infinite size. Doing otherwise will
confuse the window server when it's instructed to scale the full screen window to that size.

* UIProcess/mac/WKFullScreenWindowController.mm:
(windowFrameFromApparentFrames):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@116173 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ChangeLog
ManualTests/fullscreen/full-screen-zero-width.html [new file with mode: 0644]
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/WebView/WebFullScreenController.mm
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/mac/WKFullScreenWindowController.mm