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

Issue 1424733003: Paint media element's play button using padding. (Closed)

Created:
5 years, 1 month ago by liberato (no reviews please)
Modified:
4 years, 8 months ago
Reviewers:
chrishtr, philipj_slow, eae
CC:
chromium-reviews, nessy, mlamouri+watch-blink_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-css, gasubic, fs, eric.carlson_apple.com, blink-reviews-api_chromium.org, feature-media-reviews_chromium.org, dglazkov+blink, dshwang, apavlov+blink_chromium.org, slimming-paint-reviews_chromium.org, darktears, blink-reviews, vcarbune.chromium, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Paint media element's play button using padding. Rather than specify only a box size in CSS, we now specify the box size and padding to draw the play and pause buttons. This also requires the image to be reduced to 32 image pixels square. In order to handle desktop zoom, the images are now specified with FloatRect rather than IntRect. BUG=547955 Committed: https://crrev.com/8879c396bb77660b821a0c0d1dedb1ee2061088b Cr-Commit-Position: refs/heads/master@{#389780}

Patch Set 1 #

Patch Set 2 : crushed pngs and moved FloatRect out of old UI path. #

Total comments: 1

Patch Set 3 : android sizes back to normal, mostly. #

Patch Set 4 : css typo. #

Patch Set 5 : video does not have to be 48px high. #

Patch Set 6 : fixed mute button padding. #

Total comments: 4

Patch Set 7 : consolidated line-height. #

Patch Set 8 : rebased. #

Patch Set 9 : pngcrush + comment. #

Patch Set 10 : simplified css #

Total comments: 1

Patch Set 11 : rebased. #

Patch Set 12 : rebased. #

Patch Set 13 : back to border-box sizing for quirks mode. #

Patch Set 14 : rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -53 lines) Patch
M third_party/WebKit/Source/core/css/mediaControlsAndroidNew.css View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +61 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/mediaControlsNew.css View 1 2 3 4 5 6 7 8 9 10 11 12 13 12 chunks +36 lines, -36 lines 0 comments Download
M third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +49 lines, -17 lines 0 comments Download
M third_party/WebKit/public/default_100_percent/blink/mediaplayer_cast_off_new.png View 1 2 3 4 5 6 7 8 Binary file 0 comments Download
M third_party/WebKit/public/default_100_percent/blink/mediaplayer_cast_on_new.png View 1 2 3 4 5 6 7 8 Binary file 0 comments Download
M third_party/WebKit/public/default_100_percent/blink/mediaplayer_closedcaption_disabled_new.png View 1 2 3 4 5 6 7 8 Binary file 0 comments Download
M third_party/WebKit/public/default_100_percent/blink/mediaplayer_closedcaption_new.png View 1 2 3 4 5 6 7 8 Binary file 0 comments Download
M third_party/WebKit/public/default_100_percent/blink/mediaplayer_enter_fullscreen.png View 1 2 3 4 5 6 7 8 Binary file 0 comments Download
M third_party/WebKit/public/default_100_percent/blink/mediaplayer_exit_fullscreen.png View 1 2 3 4 5 6 7 8 Binary file 0 comments Download
M third_party/WebKit/public/default_100_percent/blink/mediaplayer_pause_new.png View 1 2 Binary file 0 comments Download
M third_party/WebKit/public/default_100_percent/blink/mediaplayer_play_new.png View 1 2 3 4 5 6 7 8 Binary file 0 comments Download
M third_party/WebKit/public/default_100_percent/blink/mediaplayer_slider_thumb_new.png View 1 2 Binary file 0 comments Download
M third_party/WebKit/public/default_100_percent/blink/mediaplayer_sound_level0_new.png View 1 2 3 4 5 6 7 8 Binary file 0 comments Download
M third_party/WebKit/public/default_100_percent/blink/mediaplayer_sound_level3_new.png View 1 2 3 4 5 6 7 8 Binary file 0 comments Download
M third_party/WebKit/public/default_100_percent/blink/mediaplayer_volume_slider_thumb_new.png View 1 2 Binary file 0 comments Download

Dependent Patchsets:

Messages

Total messages: 43 (10 generated)
liberato (no reviews please)
fyi -- not really ready for review. pretty small patch to use padding in the ...
5 years, 1 month ago (2015-10-26 21:56:13 UTC) #2
philipj_slow
Is this entirely experimental? You're increasing the padding, and I had assumed that on desktop ...
5 years, 1 month ago (2015-10-27 10:25:39 UTC) #3
liberato (no reviews please)
On 2015/10/27 10:25:39, philipj wrote: > Is this entirely experimental? You're increasing the padding, and ...
5 years, 1 month ago (2015-10-27 16:54:43 UTC) #4
philipj_slow
On 2015/10/27 16:54:43, liberato wrote: > On 2015/10/27 10:25:39, philipj wrote: > > Is this ...
5 years, 1 month ago (2015-10-28 12:33:49 UTC) #5
philipj_slow
https://codereview.chromium.org/1424733003/diff/20001/third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp File third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp (right): https://codereview.chromium.org/1424733003/diff/20001/third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp#newcode92 third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp:92: static FloatRect adjustRectForPadding(IntRect rect, const LayoutObject* object) It's surprising ...
5 years, 1 month ago (2015-10-28 12:38:07 UTC) #7
liberato (no reviews please)
On 2015/10/28 12:33:49, philipj wrote: > On 2015/10/27 16:54:43, liberato wrote: > > On 2015/10/27 ...
5 years, 1 month ago (2015-10-28 14:54:44 UTC) #8
philipj_slow
Also for my understanding, is the intention of this CL to just prepare for later ...
5 years, 1 month ago (2015-10-28 15:14:52 UTC) #9
liberato (no reviews please)
On 2015/10/28 15:14:52, philipj wrote: > Also for my understanding, is the intention of this ...
5 years, 1 month ago (2015-10-28 15:27:58 UTC) #10
philipj_slow
OK, so I guess you're going to fiddle a bit, ping me again when I ...
5 years, 1 month ago (2015-10-28 15:31:46 UTC) #11
liberato (no reviews please)
eae - per our offline discussion, this CL causes MediaControlsPainter to adjust for padding. do ...
4 years, 9 months ago (2016-03-16 20:25:24 UTC) #12
liberato (no reviews please)
eae: since philipj is ooo for an unknown amount of time, would you mind reviewing ...
4 years, 9 months ago (2016-03-17 21:45:49 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1424733003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1424733003/100001
4 years, 9 months ago (2016-03-21 07:44:44 UTC) #15
philipj_slow
Sorry for no date, I was away only on Friday. I've started a dry run, ...
4 years, 9 months ago (2016-03-21 07:45:19 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-21 09:19:36 UTC) #18
philipj_slow
On 2015/10/28 14:54:44, liberato wrote: > On 2015/10/28 12:33:49, philipj wrote: > > On 2015/10/27 ...
4 years, 9 months ago (2016-03-21 11:48:36 UTC) #19
philipj_slow
OK, so the bots are happy, I'm sure this works. Curious about feedback from eae@ ...
4 years, 9 months ago (2016-03-21 11:49:30 UTC) #20
liberato (no reviews please)
also, i rather liked your ooo message. :) -fl https://codereview.chromium.org/1424733003/diff/100001/third_party/WebKit/Source/core/css/mediaControlsAndroidNew.css File third_party/WebKit/Source/core/css/mediaControlsAndroidNew.css (right): https://codereview.chromium.org/1424733003/diff/100001/third_party/WebKit/Source/core/css/mediaControlsAndroidNew.css#newcode47 third_party/WebKit/Source/core/css/mediaControlsAndroidNew.css:47: ...
4 years, 9 months ago (2016-03-21 14:33:33 UTC) #21
philipj_slow
https://codereview.chromium.org/1424733003/diff/100001/third_party/WebKit/Source/core/css/mediaControlsAndroidNew.css File third_party/WebKit/Source/core/css/mediaControlsAndroidNew.css (right): https://codereview.chromium.org/1424733003/diff/100001/third_party/WebKit/Source/core/css/mediaControlsAndroidNew.css#newcode47 third_party/WebKit/Source/core/css/mediaControlsAndroidNew.css:47: line-height: 48px; On 2016/03/21 14:33:33, liberato wrote: > On ...
4 years, 9 months ago (2016-03-21 14:44:41 UTC) #22
liberato (no reviews please)
i took the middle approach of moving the line-height decls up to the panel. UI ...
4 years, 9 months ago (2016-03-21 15:06:17 UTC) #23
philipj_slow
So that we don't deadlock, I'm now waiting for a reply to comment #19 and ...
4 years, 9 months ago (2016-03-22 11:14:03 UTC) #24
liberato (no reviews please)
https://codereview.chromium.org/1424733003/diff/100001/third_party/WebKit/Source/core/css/mediaControlsAndroidNew.css File third_party/WebKit/Source/core/css/mediaControlsAndroidNew.css (right): https://codereview.chromium.org/1424733003/diff/100001/third_party/WebKit/Source/core/css/mediaControlsAndroidNew.css#newcode47 third_party/WebKit/Source/core/css/mediaControlsAndroidNew.css:47: line-height: 48px; On 2016/03/21 14:44:40, philipj_UTC7 wrote: > On ...
4 years, 9 months ago (2016-03-22 14:25:12 UTC) #25
liberato (no reviews please)
eae: PTAL at the implementation in MediaControlsPainter.cpp. per our email discussion, i've made it respect ...
4 years, 9 months ago (2016-03-26 21:20:25 UTC) #26
liberato (no reviews please)
On 2016/03/21 11:48:36, philipj_UTC7 wrote: > On 2015/10/28 14:54:44, liberato wrote: > > On 2015/10/28 ...
4 years, 8 months ago (2016-03-29 22:30:26 UTC) #27
eae
LGTM
4 years, 8 months ago (2016-03-29 22:36:38 UTC) #28
philipj_slow
lgtm https://codereview.chromium.org/1424733003/diff/180001/third_party/WebKit/Source/core/css/mediaControlsNew.css File third_party/WebKit/Source/core/css/mediaControlsNew.css (right): https://codereview.chromium.org/1424733003/diff/180001/third_party/WebKit/Source/core/css/mediaControlsNew.css#newcode149 third_party/WebKit/Source/core/css/mediaControlsNew.css:149: border-width: 0px; A pet peeve of mine: 0px==0. ...
4 years, 8 months ago (2016-04-01 08:47:31 UTC) #29
philipj_slow
On 2016/03/29 22:30:26, liberato wrote: > On 2016/03/21 11:48:36, philipj_UTC7 wrote: > > On 2015/10/28 ...
4 years, 8 months ago (2016-04-01 08:48:01 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1424733003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1424733003/200001
4 years, 8 months ago (2016-04-05 04:27:43 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/48309)
4 years, 8 months ago (2016-04-05 07:03:07 UTC) #35
liberato (no reviews please)
@philipj: this reverts the content-box,padding change back to border-box, to work around quirks mode. since ...
4 years, 8 months ago (2016-04-25 16:00:08 UTC) #36
philipj_slow
On 2016/04/25 16:00:08, liberato wrote: > @philipj: this reverts the content-box,padding change back to border-box, ...
4 years, 8 months ago (2016-04-26 14:48:19 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1424733003/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1424733003/260001
4 years, 8 months ago (2016-04-26 14:51:13 UTC) #40
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 8 months ago (2016-04-26 14:59:18 UTC) #41
commit-bot: I haz the power
4 years, 8 months ago (2016-04-26 15:01:15 UTC) #43
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/8879c396bb77660b821a0c0d1dedb1ee2061088b
Cr-Commit-Position: refs/heads/master@{#389780}

Powered by Google App Engine
This is Rietveld 408576698