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 1296333002: Removed clientHeight() from MediaControlsPainter. (Closed)

Created:
5 years, 4 months ago by liberato (no reviews please)
Modified:
5 years, 4 months ago
Reviewers:
philipj_slow, fs
CC:
blink-reviews, blink-reviews-rendering, nessy, szager+layoutwatch_chromium.org, zoltan1, mlamouri+watch-blink_chromium.org, eae+blinkwatch, philipj_slow, gasubic, fs, eric.carlson_apple.com, leviw+renderwatch, feature-media-reviews_chromium.org, dglazkov+blink, blink-reviews-html_chromium.org, slimming-paint-reviews_chromium.org, jchaffraix+rendering, pdr+renderingwatchlist_chromium.org, dshwang, blink-reviews-paint_chromium.org, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Removed clientHeight() from MediaControlsPainter. Relayout during paint asserts. There were a few cases where the layout was actually dirty during paint, causing the clientHeight() to relayout and crash. Instead, we now cache the last known layout size in the media element, and use it to compute things during paint. It would be much nicer if we could use CSS for this, but it doesn't seem to be possible for the media shadow controls. They all paint as background images. This may also be related to crbug.com/519495 . BUG=520914 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200770

Patch Set 1 #

Patch Set 2 : removed TODO. #

Total comments: 2

Patch Set 3 : Use LayoutBox size instead. #

Total comments: 3

Patch Set 4 : switched to pixelSnappedHeight() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M Source/core/paint/MediaControlsPainter.cpp View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 17 (6 generated)
liberato (no reviews please)
The android media controls UI can occasionally trigger layout during paint, which crashes. This substitutes ...
5 years, 4 months ago (2015-08-17 22:35:53 UTC) #2
liberato (no reviews please)
The android media controls UI can occasionally trigger layout during paint, which crashes. This substitutes ...
5 years, 4 months ago (2015-08-17 22:35:55 UTC) #3
DaleCurtis
To channel philipj pre-emptively, can we add a layout test for this? :)
5 years, 4 months ago (2015-08-17 22:51:32 UTC) #4
liberato (no reviews please)
On 2015/08/17 22:51:32, DaleCurtis wrote: > To channel philipj pre-emptively, can we add a layout ...
5 years, 4 months ago (2015-08-17 22:55:47 UTC) #5
fs
On 2015/08/17 22:35:55, liberato wrote: > The android media controls UI can occasionally trigger layout ...
5 years, 4 months ago (2015-08-18 07:39:41 UTC) #7
liberato (no reviews please)
thanks, fs! i've switched to asking the LayoutBox for the size, and now i understand ...
5 years, 4 months ago (2015-08-18 16:26:42 UTC) #8
fs
LGTM w/ additional suggestion. https://codereview.chromium.org/1296333002/diff/40001/Source/core/paint/MediaControlsPainter.cpp File Source/core/paint/MediaControlsPainter.cpp (right): https://codereview.chromium.org/1296333002/diff/40001/Source/core/paint/MediaControlsPainter.cpp#newcode176 Source/core/paint/MediaControlsPainter.cpp:176: const LayoutBox* box = mediaElement->layoutObject()->enclosingBox(); ...
5 years, 4 months ago (2015-08-18 16:41:19 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1296333002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1296333002/60001
5 years, 4 months ago (2015-08-18 18:18:13 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/100456)
5 years, 4 months ago (2015-08-18 19:09:51 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1296333002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1296333002/60001
5 years, 4 months ago (2015-08-18 23:52:44 UTC) #16
commit-bot: I haz the power
5 years, 4 months ago (2015-08-19 00:53:52 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=200770

Powered by Google App Engine
This is Rietveld 408576698