Changeset 91066 in webkit


Ignore:
Timestamp:
Jul 15, 2011 7:02:17 AM (13 years ago)
Author:
jeffm@apple.com
Message:

Fullscreen content doesn't use fullscreen controller on Windows
https://bugs.webkit.org/show_bug.cgi?id=64540
<rdar://problem/9510455>

Source/WebCore:

Reviewed by Darin Adler.

RenderThemeWin needs to override extraFullScreenStyleSheet() to return
the fullscreenQuickTime stylesheet.

Test added to fullscreen/video-controls-override.html.

  • rendering/RenderThemeWin.cpp:

(WebCore::RenderThemeWin::extraFullScreenStyleSheet): Added.

  • rendering/RenderThemeWin.h: Override extraFullScreenStyleSheet().

LayoutTests:

Reviewed by Darin Adler.

Add another test to video-controls-override.html to verify that
we're using the correct fullscreen controller by checking the
height of the controller panel, which is taller than the non-fullscreen
version. Unfortunately, the fullscreen tests don't work on Windows
yet, but I verified this would have caught this issue by simulating
the bug on the Mac.

  • fullscreen/video-controls-override-expected.txt: Add new test to check the height of the panel.
  • fullscreen/video-controls-override.html: Add new test to check the height of the panel, and

log errors if window.internals or window.layoutTestController are undefined.

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r91061 r91066  
     12011-07-15  Jeff Miller  <jeffm@apple.com>
     2
     3        Fullscreen content doesn't use fullscreen controller on Windows
     4        https://bugs.webkit.org/show_bug.cgi?id=64540
     5        <rdar://problem/9510455>
     6
     7        Reviewed by Darin Adler.
     8       
     9        Add another test to video-controls-override.html to verify that
     10        we're using the correct fullscreen controller by checking the
     11        height of the controller panel, which is taller than the non-fullscreen
     12        version. Unfortunately, the fullscreen tests don't work on Windows
     13        yet, but I verified this would have caught this issue by simulating
     14        the bug on the Mac.
     15
     16        * fullscreen/video-controls-override-expected.txt: Add new test to check the height of the panel.
     17
     18        * fullscreen/video-controls-override.html: Add new test to check the height of the panel, and
     19        log errors if window.internals or window.layoutTestController are undefined.
     20
    1212011-07-15  Mike West  <mkwst@chromium.org>
    222
  • trunk/LayoutTests/fullscreen/video-controls-override-expected.txt

    r89682 r91066  
    66EXPECTED (internals.shadowPseudoId(panel) == '-webkit-media-controls-panel') OK
    77EXPECTED (document.defaultView.getComputedStyle(panel)['display'] != 'none') OK
     8EXPECTED (document.defaultView.getComputedStyle(panel)['height'] == '48px') OK
    89EVENT(webkitfullscreenchange)
    910EXPECTED (document.defaultView.getComputedStyle(panel)['display'] == 'none') OK
  • trunk/LayoutTests/fullscreen/video-controls-override.html

    r89682 r91066  
    2323                testExpected("internals.shadowPseudoId(panel)", "-webkit-media-controls-panel");
    2424                testExpected("document.defaultView.getComputedStyle(panel)['display']", 'none', "!=");
     25                testExpected("document.defaultView.getComputedStyle(panel)['height']", '48px');
    2526            }
     27            else
     28                logResult(false, "window.internals == undefined");
     29           
    2630            callback = cancelledFullScreen;
    2731            document.webkitCancelFullScreen();
     
    3135            if (window.layoutTestController)
    3236                testExpected("document.defaultView.getComputedStyle(panel)['display']", 'none');
     37            else
     38                logResult(false, "window.layoutTestController == undefined");
     39
    3340            endTest();
    3441        };
  • trunk/Source/WebCore/ChangeLog

    r91065 r91066  
     12011-07-15  Jeff Miller  <jeffm@apple.com>
     2
     3        Fullscreen content doesn't use fullscreen controller on Windows
     4        https://bugs.webkit.org/show_bug.cgi?id=64540
     5        <rdar://problem/9510455>
     6
     7        Reviewed by Darin Adler.
     8
     9        RenderThemeWin needs to override extraFullScreenStyleSheet() to return
     10        the fullscreenQuickTime stylesheet.
     11
     12        Test added to fullscreen/video-controls-override.html.
     13
     14        * rendering/RenderThemeWin.cpp:
     15        (WebCore::RenderThemeWin::extraFullScreenStyleSheet): Added.
     16        * rendering/RenderThemeWin.h: Override extraFullScreenStyleSheet().
     17
    1182011-07-15  Nikolas Zimmermann  <nzimmermann@rim.com>
    219
  • trunk/Source/WebCore/rendering/RenderThemeWin.cpp

    r90075 r91066  
    10361036}
    10371037
     1038#if ENABLE(FULLSCREEN_API)
     1039String RenderThemeWin::extraFullScreenStyleSheet()
     1040{
     1041    return String(fullscreenQuickTimeUserAgentStyleSheet, sizeof(fullscreenQuickTimeUserAgentStyleSheet));
     1042}
     1043#endif
     1044
    10381045bool RenderThemeWin::supportsClosedCaptioning() const
    10391046{
  • trunk/Source/WebCore/rendering/RenderThemeWin.h

    r88405 r91066  
    125125#if ENABLE(VIDEO)
    126126    virtual String extraMediaControlsStyleSheet();
     127#if ENABLE(FULLSCREEN_API)
     128    virtual String extraFullScreenStyleSheet();
     129#endif
    127130    virtual bool supportsClosedCaptioning() const;
    128131    virtual bool paintMediaControlsBackground(RenderObject*, const PaintInfo&, const IntRect&);
Note: See TracChangeset for help on using the changeset viewer.