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

Issue 2684973004: Remove unnecessary refreshCastButtonVisibility call (Closed)

Created:
3 years, 10 months ago by steimel
Modified:
3 years, 10 months 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, nessy, Srirama
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove unnecessary refreshCastButtonVisiblity call computeWhichControlsFit is being called on every mousemove event on a video (via a call to refreshCastButtonVisiblity). After discussing offline with mlamouri@ and avayvod@, it was determined that the call to refreshCastButtonVisiblity is no longer needed, and therefore can be removed. In addition, this CL refactors some media layout tests that test the cast button visibility, and appends to an existing cast button visibility test (controls-cast-button-narrow.html) to test for correct visibility after expanding and contracting a video. BUG=639273 Review-Url: https://codereview.chromium.org/2684973004 Cr-Commit-Position: refs/heads/master@{#450524} Committed: https://chromium.googlesource.com/chromium/src/+/6fb1451de0171f8bdd0915c22016750d79c0b3ac

Patch Set 1 #

Patch Set 2 : Refactor media layout test castButton and overlayCastButton function usage #

Patch Set 3 : Modify narrow video test to test resizing #

Total comments: 4

Patch Set 4 : mlamouri feedback #

Total comments: 2

Patch Set 5 : remove extra blank lines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -46 lines) Patch
M third_party/WebKit/LayoutTests/media/controls-cast-button.html View 1 1 chunk +0 lines, -16 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/controls-cast-button-narrow.html View 1 2 3 4 1 chunk +28 lines, -20 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/controls-overlay-cast-button.html View 1 1 chunk +1 line, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/media-controls.js View 1 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControls.cpp View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 29 (14 generated)
steimel
PTAL
3 years, 10 months ago (2017-02-08 23:56:18 UTC) #2
mlamouri (slow - plz ping)
Could you write a LayoutTest for this to test that the reason why this call ...
3 years, 10 months ago (2017-02-10 14:12:17 UTC) #8
whywhat
On 2017/02/10 at 14:12:17, mlamouri wrote: > Could you write a LayoutTest for this to ...
3 years, 10 months ago (2017-02-10 16:02:15 UTC) #9
mlamouri (slow - plz ping)
On 2017/02/10 at 16:02:15, avayvod wrote: > On 2017/02/10 at 14:12:17, mlamouri wrote: > > ...
3 years, 10 months ago (2017-02-10 17:05:48 UTC) #10
whywhat
On 2017/02/10 at 17:05:48, mlamouri wrote: > On 2017/02/10 at 16:02:15, avayvod wrote: > > ...
3 years, 10 months ago (2017-02-13 16:36:28 UTC) #12
steimel
PTAL
3 years, 10 months ago (2017-02-14 00:18:23 UTC) #13
whywhat
lgtm thanks for updating the tests!
3 years, 10 months ago (2017-02-14 01:21:42 UTC) #15
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/2684973004/40001
3 years, 10 months ago (2017-02-14 01:38:08 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/363459)
3 years, 10 months ago (2017-02-14 01:47:03 UTC) #19
mlamouri (slow - plz ping)
sgtm with some tests cleanup :) https://codereview.chromium.org/2684973004/diff/40001/third_party/WebKit/LayoutTests/media/controls-cast-button-narrow.html File third_party/WebKit/LayoutTests/media/controls-cast-button-narrow.html (right): https://codereview.chromium.org/2684973004/diff/40001/third_party/WebKit/LayoutTests/media/controls-cast-button-narrow.html#newcode24 third_party/WebKit/LayoutTests/media/controls-cast-button-narrow.html:24: // Make video ...
3 years, 10 months ago (2017-02-14 09:58:06 UTC) #20
steimel
PTAL https://codereview.chromium.org/2684973004/diff/40001/third_party/WebKit/LayoutTests/media/controls-cast-button-narrow.html File third_party/WebKit/LayoutTests/media/controls-cast-button-narrow.html (right): https://codereview.chromium.org/2684973004/diff/40001/third_party/WebKit/LayoutTests/media/controls-cast-button-narrow.html#newcode24 third_party/WebKit/LayoutTests/media/controls-cast-button-narrow.html:24: // Make video wider On 2017/02/14 09:58:05, mlamouri ...
3 years, 10 months ago (2017-02-14 17:31:01 UTC) #21
mlamouri (slow - plz ping)
lgtm with nit-style fixed :) https://codereview.chromium.org/2684973004/diff/60001/third_party/WebKit/LayoutTests/media/controls-cast-button-narrow.html File third_party/WebKit/LayoutTests/media/controls-cast-button-narrow.html (right): https://codereview.chromium.org/2684973004/diff/60001/third_party/WebKit/LayoutTests/media/controls-cast-button-narrow.html#newcode34 third_party/WebKit/LayoutTests/media/controls-cast-button-narrow.html:34: nit: one empty line ...
3 years, 10 months ago (2017-02-14 21:00:17 UTC) #22
steimel
https://codereview.chromium.org/2684973004/diff/60001/third_party/WebKit/LayoutTests/media/controls-cast-button-narrow.html File third_party/WebKit/LayoutTests/media/controls-cast-button-narrow.html (right): https://codereview.chromium.org/2684973004/diff/60001/third_party/WebKit/LayoutTests/media/controls-cast-button-narrow.html#newcode34 third_party/WebKit/LayoutTests/media/controls-cast-button-narrow.html:34: On 2017/02/14 21:00:17, mlamouri wrote: > nit: one empty ...
3 years, 10 months ago (2017-02-14 22:32:12 UTC) #23
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/2684973004/80001
3 years, 10 months ago (2017-02-14 22:33:12 UTC) #26
commit-bot: I haz the power
3 years, 10 months ago (2017-02-15 00:24:59 UTC) #29
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/6fb1451de0171f8bdd0915c22016...

Powered by Google App Engine
This is Rietveld 408576698