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

Issue 2561823003: Ensure LayoutMedia notifies MediaControls of panel width (Closed)

Created:
4 years ago by billorr
Modified:
4 years ago
Reviewers:
whywhat, eae
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, ddorwin, eae+blinkwatch, eric.carlson_apple.com, feature-media-reviews_chromium.org, jchaffraix+rendering, leviw+renderwatch, mlamouri (slow - plz ping), mlamouri+watch-blink_chromium.org, pdr+renderingwatchlist_chromium.org, Srirama, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure LayoutMedia notifies MediaControls of panel width Some pages weren't showing native media controls on Android. This was easiest to repro when using an iframe to embed youtube content. LayoutMedia notifies MediaControls of the panel width so MediaControls can decide what controls will fit. LayoutMedia calculates the size during layout, and only notifies the MediaControls if the size changes. In the case of the bug, LayoutMedia never notifies MediaControls of the correct size. The first time layout occurs, there is no child MediaControls. During subsequent layouts, notifications aren't sent because the size hasn't changed. The fix is to ensure we send the panel width to MediaControls if the size change or if we haven't yet sent the width. BUG=672227 Committed: https://crrev.com/1d8e2478297992731014b1dc6661a420aaa3f1e9 Cr-Commit-Position: refs/heads/master@{#437437}

Patch Set 1 #

Total comments: 2

Patch Set 2 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -4 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutMedia.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutMedia.cpp View 1 2 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 24 (17 generated)
billorr
eae, please review all files
4 years ago (2016-12-08 22:58:51 UTC) #2
whywhat
non-owner LGTM Thanks for looking into the issue! Sorry I couldn't get to it sooner. ...
4 years ago (2016-12-08 23:21:06 UTC) #6
billorr
https://codereview.chromium.org/2561823003/diff/1/third_party/WebKit/Source/core/layout/LayoutMedia.cpp File third_party/WebKit/Source/core/layout/LayoutMedia.cpp (right): https://codereview.chromium.org/2561823003/diff/1/third_party/WebKit/Source/core/layout/LayoutMedia.cpp#newcode108 third_party/WebKit/Source/core/layout/LayoutMedia.cpp:108: // store the last value we reported, so we ...
4 years ago (2016-12-08 23:34:58 UTC) #8
eae
LGTM
4 years ago (2016-12-09 01:26:54 UTC) #14
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/2561823003/20001
4 years ago (2016-12-09 01:40:50 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-09 02:24:47 UTC) #22
commit-bot: I haz the power
4 years ago (2016-12-09 02:28:15 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/1d8e2478297992731014b1dc6661a420aaa3f1e9
Cr-Commit-Position: refs/heads/master@{#437437}

Powered by Google App Engine
This is Rietveld 408576698