Changeset 190053 in webkit


Ignore:
Timestamp:
Sep 21, 2015 1:37:25 AM (9 years ago)
Author:
ChangSeok Oh
Message:

[GTK] timeline is not updated after few seconds when mouse hovers on controls
https://bugs.webkit.org/show_bug.cgi?id=149111

Reviewed by Philippe Normand.

Source/WebCore:

Timeline is not updated if controlsAreHidden is true. The problem here is that
the function does not mean actually 'hidden' since it only checkes 'show' and 'hidden'
class existences. The panel's visibility are not only controlled by the two classes,
but also by video::-webkit-media-controls-panel:hover. The panel could be visible
by setting the pseudo hover class. So we need to check if panel is hovered as well in controlsAreHidden().

Test: media/media-controls-timeline-updates-when-hovered.html

  • Modules/mediacontrols/mediaControlsBase.js:

(Controller.prototype.controlsAreHidden):

LayoutTests:

  • media/media-controls-timeline-updates-when-hovered-expected.txt: Added.
  • media/media-controls-timeline-updates-when-hovered.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r190041 r190053  
     12015-09-21  ChangSeok Oh  <changseok.oh@collabora.com>
     2
     3        [GTK] timeline is not updated after few seconds when mouse hovers on controls
     4        https://bugs.webkit.org/show_bug.cgi?id=149111
     5
     6        Reviewed by Philippe Normand.
     7
     8        * media/media-controls-timeline-updates-when-hovered-expected.txt: Added.
     9        * media/media-controls-timeline-updates-when-hovered.html: Added.
     10
    1112015-09-20  Andy Estes  <aestes@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r190045 r190053  
     12015-09-21  ChangSeok Oh  <changseok.oh@collabora.com>
     2
     3        [GTK] timeline is not updated after few seconds when mouse hovers on controls
     4        https://bugs.webkit.org/show_bug.cgi?id=149111
     5
     6        Reviewed by Philippe Normand.
     7
     8        Timeline is not updated if controlsAreHidden is true. The problem here is that
     9        the function does not mean actually 'hidden' since it only checkes 'show' and 'hidden'
     10        class existences. The panel's visibility are not only controlled by the two classes,
     11        but also by video::-webkit-media-controls-panel:hover. The panel could be visible
     12        by setting the pseudo hover class. So we need to check if panel is hovered as well in controlsAreHidden().
     13
     14        Test: media/media-controls-timeline-updates-when-hovered.html
     15
     16        * Modules/mediacontrols/mediaControlsBase.js:
     17        (Controller.prototype.controlsAreHidden):
     18
    1192015-09-21  Michael Catanzaro  <mcatanzaro@igalia.com>
    220
  • trunk/Source/WebCore/Modules/mediacontrols/mediaControlsBase.js

    r180441 r190053  
    10241024    controlsAreHidden: function()
    10251025    {
    1026         return !this.controls.panel.classList.contains(this.ClassNames.show) || this.controls.panel.classList.contains(this.ClassNames.hidden);
     1026        var panel = this.controls.panel;
     1027        return (!panel.classList.contains(this.ClassNames.show) || panel.classList.contains(this.ClassNames.hidden))
     1028            && (panel.parentElement.querySelector(':hover') !== panel);
    10271029    },
    10281030
Note: See TracChangeset for help on using the changeset viewer.