Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(519)

Issue 2557043003: Make media controls not depend on the webkitfullscreenchange event (Closed)

Created:
4 years ago by foolip
Modified:
4 years ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, mlamouri+watch-blink_chromium.org, posciak+watch_chromium.org, nessy, Srirama, vcarbune.chromium
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make media controls not depend on the webkitfullscreenchange event With the unprefixed API, a fullscreenchange event will be fired at the document, so this is not a reliable signal that the video element is fullscreen. Background: HTMLMediaElement::didEnterFullscreen() is called as part of Fullscreen::didEnterFullscreen(), while the webkitfullscreenchange event is fired on a timer started by Fullscreen::didEnterFullscreen(). Both before and after this change, the webkitfullscreenchange event is fired after the post-enter MediaControls::notifyPanelWidthChanged(). Before, HTMLMediaElement::preDispatchEventHandler() called configureMediaControls(), which would run MediaControls::computeWhichControlsFit() with the new panel width and update the visibility of the overflow button. Now, MediaControls::panelWidthChangedTimerFired() will run computeWhichControlsFit() after the event has been fired. The difference isn't observable to web content, and it's still the case that the media controls depend on layout to update, giving one bad frame after entering fullscreen (or any other size-changing layout). BUG=383813 Committed: https://crrev.com/fb076a85441fa682dada999e283ff22d36ee4563 Cr-Commit-Position: refs/heads/master@{#436949}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -12 lines) Patch
M third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-fullscreen-button.html View 1 chunk +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 3 chunks +2 lines, -8 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
foolip
PTAL. This is a failing test in https://codereview.chromium.org/2557943002 but I'm fixing it separately.
4 years ago (2016-12-07 12:48:22 UTC) #6
mlamouri (slow - plz ping)
lgtm
4 years ago (2016-12-07 14:42:18 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2557043003/1
4 years ago (2016-12-07 14:48:21 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-07 14:52:59 UTC) #14
commit-bot: I haz the power
4 years ago (2016-12-07 14:54:36 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/fb076a85441fa682dada999e283ff22d36ee4563
Cr-Commit-Position: refs/heads/master@{#436949}

Powered by Google App Engine
This is Rietveld 408576698