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

Issue 199413008: Simplify MediaControls::show() and hide() (Closed)

Created:
6 years, 9 months ago by philipj_slow
Modified:
6 years, 9 months ago
CC:
blink-reviews, nessy, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, adamk+blink_chromium.org, vcarbune.chromium
Visibility:
Public.

Description

Simplify MediaControls::show() and hide() By hiding the entire HTMLDivElement that is MediaControls, there's no need to worry about the state of the child elements. As a possible optimization, one could expose a bool hidden() and let HTMLMediaElement not update controls when they are hidden, but that would be more code to test for no obvious gain. BUG=341813, 347105 TEST=LayoutTests/media/ pass; no observable change expected

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -15 lines) Patch
M Source/core/html/shadow/MediaControlElements.h View 2 chunks +0 lines, -2 lines 0 comments Download
M Source/core/html/shadow/MediaControlElements.cpp View 3 chunks +1 line, -9 lines 0 comments Download
M Source/core/html/shadow/MediaControls.cpp View 2 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
acolwell GONE FROM CHROMIUM
These changes look ok, but doesn't this potentially hide the text cues?
6 years, 9 months ago (2014-03-17 23:47:45 UTC) #1
philipj_slow
6 years, 9 months ago (2014-03-18 03:10:47 UTC) #2
Heh, I don't know how I could overlook that. You're right, this just doesn't
work, at least not until text track rendering is refactored out of the controls
code, which is something I'd like to do. For now, though, I guess just hiding
the top-level containers inside the controls is the way to go.

Powered by Google App Engine
This is Rietveld 408576698