Changeset 116173 in webkit


Ignore:
Timestamp:
May 4, 2012 2:30:52 PM (12 years ago)
Author:
jer.noble@apple.com
Message:

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):

Location:
trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r116078 r116173  
     12012-05-04  Jer Noble  <jer.noble@apple.com>
     2
     3        Taking a visibility:hidden element full screen causes full screen window to disappear.
     4        https://bugs.webkit.org/show_bug.cgi?id=85432
     5
     6        Reviewed by Maciej Stachowiak.
     7
     8        * ManualTests/fullscreen/full-screen-zero-width.html: Added.
     9
    1102012-05-04  Carlos Garcia Campos  <cgarcia@igalia.com>
    211
  • trunk/Source/WebKit/mac/ChangeLog

    r116165 r116173  
     12012-05-02  Jer Noble  <jer.noble@apple.com>
     2
     3        Taking a visibility:hidden element full screen causes full screen window to disappear.
     4        https://bugs.webkit.org/show_bug.cgi?id=85432
     5
     6        Reviewed by Maciej Stachowiak.
     7
     8        When given an initial or final frame with a zero width or height, return a rect representing
     9        the entire screen, rather than a rect with a zero or infinite size. Doing otherwise will
     10        confuse the window server when it's instructed to scale the full screen window to that size.
     11
     12        * WebView/WebFullScreenController.mm:
     13        (windowFrameFromApparentFrames):
     14
    1152012-05-04  Jer Noble  <jer.noble@apple.com>
    216
  • trunk/Source/WebKit/mac/WebView/WebFullScreenController.mm

    r116031 r116173  
    472472{
    473473    NSRect initialWindowFrame;
     474    if (!NSWidth(initialFrame) || !NSWidth(finalFrame) || !NSHeight(initialFrame) || !NSHeight(finalFrame))
     475        return screenFrame;
     476
    474477    CGFloat xScale = NSWidth(screenFrame) / NSWidth(finalFrame);
    475478    CGFloat yScale = NSHeight(screenFrame) / NSHeight(finalFrame);
  • trunk/Source/WebKit2/ChangeLog

    r116165 r116173  
     12012-05-02  Jer Noble  <jer.noble@apple.com>
     2
     3        Taking a visibility:hidden element full screen causes full screen window to disappear.
     4        https://bugs.webkit.org/show_bug.cgi?id=85432
     5
     6        Reviewed by Maciej Stachowiak.
     7
     8        When given an initial or final frame with a zero width or height, return a rect representing
     9        the entire screen, rather than a rect with a zero or infinite size. Doing otherwise will
     10        confuse the window server when it's instructed to scale the full screen window to that size.
     11
     12        * UIProcess/mac/WKFullScreenWindowController.mm:
     13        (windowFrameFromApparentFrames):
     14
    1152012-04-30  Jer Noble  <jer.noble@apple.com>
    216
  • trunk/Source/WebKit2/UIProcess/mac/WKFullScreenWindowController.mm

    r116031 r116173  
    469469{
    470470    NSRect initialWindowFrame;
     471    if (!NSWidth(initialFrame) || !NSWidth(finalFrame) || !NSHeight(initialFrame) || !NSHeight(finalFrame))
     472        return screenFrame;
     473
    471474    CGFloat xScale = NSWidth(screenFrame) / NSWidth(finalFrame);
    472475    CGFloat yScale = NSHeight(screenFrame) / NSHeight(finalFrame);
Note: See TracChangeset for help on using the changeset viewer.