Chromium Code Reviews
DescriptionRemove 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 #
Messages
Total messages: 29 (14 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||