Media Controls: Fix timeline zoom factor

Desktop / Chromium - Becca Hughes [chromium.org] - 11 October 2017 11:59 EDT

This fixes cases where the user zooms in or out and the timeline is not scaled correctly. Also hides overflowing content from the timeline in case something does go wrong.

BUG=771140,771880

Change-Id: I10bc36f336f5607c5df4d8a7824138bed7f08a0f Reviewed-on: https://chromium-review.googlesource.com/707062 Commit-Queue: Becca Hughes

f707b5e Media Controls: Fix timeline zoom factor
.../media/controls/controls-page-zoom-in.html | 27 +++++++++++
.../media/controls/controls-page-zoom-out.html | 27 +++++++++++
.../controls/controls-page-zoom-in-expected.png | Bin 0 -> 103894 bytes
.../controls/controls-page-zoom-out-expected.png | Bin 0 -> 36215 bytes
.../controls/controls-page-zoom-in-expected.png | Bin 0 -> 103894 bytes
.../controls/controls-page-zoom-out-expected.png | Bin 0 -> 36215 bytes
.../controls/controls-page-zoom-in-expected.png | Bin 0 -> 103105 bytes
.../controls/controls-page-zoom-out-expected.png | Bin 0 -> 36164 bytes
.../controls/controls-page-zoom-in-expected.png | Bin 0 -> 103772 bytes
.../controls/controls-page-zoom-out-expected.png | Bin 0 -> 36164 bytes
.../controls/controls-page-zoom-in-expected.png | Bin 0 -> 103105 bytes
.../controls/controls-page-zoom-in-expected.txt | 51 +++++++++++++++++++++
.../controls/controls-page-zoom-out-expected.png | Bin 0 -> 35956 bytes
.../controls/controls-page-zoom-out-expected.txt | 51 +++++++++++++++++++++
.../controls/controls-page-zoom-in-expected.png | Bin 0 -> 103105 bytes
.../controls/controls-page-zoom-in-expected.txt | 51 +++++++++++++++++++++
.../controls/controls-page-zoom-out-expected.png | Bin 0 -> 35956 bytes
.../controls/controls-page-zoom-out-expected.txt | 51 +++++++++++++++++++++
.../controls/controls-page-zoom-in-expected.png | Bin 0 -> 103368 bytes
.../controls/controls-page-zoom-in-expected.txt | 51 +++++++++++++++++++++
.../controls/controls-page-zoom-out-expected.png | Bin 0 -> 36014 bytes
.../controls/controls-page-zoom-out-expected.txt | 51 +++++++++++++++++++++
.../controls/controls-page-zoom-in-expected.png | Bin 0 -> 103094 bytes
.../controls/controls-page-zoom-in-expected.txt | 51 +++++++++++++++++++++
.../controls/controls-page-zoom-out-expected.png | Bin 0 -> 36122 bytes
.../controls/controls-page-zoom-out-expected.txt | 51 +++++++++++++++++++++
.../controls/controls-page-zoom-in-expected.png | Bin 0 -> 103094 bytes
.../controls/controls-page-zoom-out-expected.png | Bin 0 -> 36014 bytes
.../elements/MediaControlSliderElement.cpp | 22 ++++++---
.../elements/MediaControlSliderElement.h | 2 +
.../resources/legacyMediaControls.css | 1 +
31 files changed, 480 insertions(+), 7 deletions(-)

Upstream: git.chromium.org


  • Share