Changeset 138902 in webkit


Ignore:
Timestamp:
Jan 5, 2013 12:49:15 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

MediaControls::show() should make controls opaque
https://bugs.webkit.org/show_bug.cgi?id=106034

Patch by Min Qin <qinmin@chromium.org> on 2013-01-05
Reviewed by Eric Carlson.

Source/WebCore:

When a video enters fullscreen, webkit starts a timer to make the control transparent when the timer expires.
If the user exits fullscreen while the timer expires, webkit will call mediaControls::show().
However, show() actually displays nothing as the control is transparent.
The user had to move his mouse outside the video rect and move it back in order to show the controls.
Simply clicking/moving the mouse inside the video rect will not make the control opaque.
Test: media/video-controls-visible-exiting-fullscreen.html

  • html/shadow/MediaControls.cpp:

(WebCore::MediaControls::show):

LayoutTests:

Add tests to check that video controls are shown when exiting from fullscreen.

  • media/video-controls-visible-exiting-fullscreen-expected.txt: Added.
  • media/video-controls-visible-exiting-fullscreen.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r138901 r138902  
     12013-01-05  Min Qin  <qinmin@chromium.org>
     2
     3        MediaControls::show() should make controls opaque
     4        https://bugs.webkit.org/show_bug.cgi?id=106034
     5
     6        Reviewed by Eric Carlson.
     7
     8        Add tests to check that video controls are shown when exiting from fullscreen.
     9
     10        * media/video-controls-visible-exiting-fullscreen-expected.txt: Added.
     11        * media/video-controls-visible-exiting-fullscreen.html: Added.
     12
    1132013-01-05  Michael Pruett  <michael@68k.org>
    214
  • trunk/Source/WebCore/ChangeLog

    r138900 r138902  
     12013-01-05  Min Qin  <qinmin@chromium.org>
     2
     3        MediaControls::show() should make controls opaque
     4        https://bugs.webkit.org/show_bug.cgi?id=106034
     5
     6        Reviewed by Eric Carlson.
     7
     8        When a video enters fullscreen, webkit starts a timer to make the control transparent when the timer expires.
     9        If the user exits fullscreen while the timer expires, webkit will call mediaControls::show().
     10        However, show() actually displays nothing as the control is transparent.
     11        The user had to move his mouse outside the video rect and move it back in order to show the controls.
     12        Simply clicking/moving the mouse inside the video rect will not make the control opaque.
     13        Test: media/video-controls-visible-exiting-fullscreen.html
     14
     15        * html/shadow/MediaControls.cpp:
     16        (WebCore::MediaControls::show):
     17
    1182013-01-05  Alec Flett  <alecflett@chromium.org>
    219
  • trunk/Source/WebCore/html/shadow/MediaControls.cpp

    r136991 r138902  
    152152void MediaControls::show()
    153153{
     154    makeOpaque();
    154155    m_panel->setIsDisplayed(true);
    155156    m_panel->show();
Note: See TracChangeset for help on using the changeset viewer.