Changeset 195671 in webkit


Ignore:
Timestamp:
Jan 27, 2016 7:20:03 AM (8 years ago)
Author:
jer.noble@apple.com
Message:

Calling video.controls=true during a scrub operation cancels scrub.
https://bugs.webkit.org/show_bug.cgi?id=153494

Reviewed by Eric Carlson.

Source/WebCore:

Test: media/media-controls-drag-timeline-set-controls-property.html

Verify that the video.controls attribute actually changed before tearing down and
re-adding the media controls to the Shadow DOM.

  • Modules/mediacontrols/mediaControlsApple.js:

(Controller.prototype.handleControlsChange):
(Controller.prototype.hasControls):

LayoutTests:

  • media/media-controls-drag-timeline-set-controls-property-expected.txt: Added.
  • media/media-controls-drag-timeline-set-controls-property.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r195652 r195671  
     12016-01-26  Jer Noble  <jer.noble@apple.com>
     2
     3        Calling video.controls=true during a scrub operation cancels scrub.
     4        https://bugs.webkit.org/show_bug.cgi?id=153494
     5
     6        Reviewed by Eric Carlson.
     7
     8        * media/media-controls-drag-timeline-set-controls-property-expected.txt: Added.
     9        * media/media-controls-drag-timeline-set-controls-property.html: Added.
     10
    1112016-01-26  Chris Dumez  <cdumez@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r195661 r195671  
     12016-01-26  Jer Noble  <jer.noble@apple.com>
     2
     3        Calling video.controls=true during a scrub operation cancels scrub.
     4        https://bugs.webkit.org/show_bug.cgi?id=153494
     5
     6        Reviewed by Eric Carlson.
     7
     8        Test: media/media-controls-drag-timeline-set-controls-property.html
     9
     10        Verify that the video.controls attribute actually changed before tearing down and
     11        re-adding the media controls to the Shadow DOM.
     12
     13        * Modules/mediacontrols/mediaControlsApple.js:
     14        (Controller.prototype.handleControlsChange):
     15        (Controller.prototype.hasControls):
     16
    1172016-01-27  Carlos Garcia Campos  <cgarcia@igalia.com>
    218
  • trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.js

    r195626 r195671  
    10881088            this.updateBase();
    10891089
    1090             if (this.shouldHaveControls())
     1090            if (this.shouldHaveControls() && !this.hasControls())
    10911091                this.addControls();
    1092             else
     1092            else if (!this.shouldHaveControls() && this.hasControls())
    10931093                this.removeControls();
    10941094        } catch(e) {
     
    15411541        this.base.appendChild(this.controls.panel);
    15421542        this.updateControls();
     1543    },
     1544
     1545    hasControls: function()
     1546    {
     1547        return this.controls.panel.parentElement;
    15431548    },
    15441549
Note: See TracChangeset for help on using the changeset viewer.