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

Issue 2851513004: Ensure cell's replaced content doesn't get the wrong width (Closed)

Created:
3 years, 7 months ago by rhogan
Modified:
3 years, 7 months ago
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure cell's replaced content doesn't get the wrong width We need to make the cell's height unusable for calculating perecent/calc height against before computing its preferred width, otherwise replaced children may use it to scale up their intrinsic width. BUG=666730 Review-Url: https://codereview.chromium.org/2851513004 Cr-Commit-Position: refs/heads/master@{#472228} Committed: https://chromium.googlesource.com/chromium/src/+/03d66d9ce1e602df26a9d544d9258a88b9194349

Patch Set 1 #

Patch Set 2 : bug 666730 #

Total comments: 8

Patch Set 3 : bug 666730 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -3 lines) Patch
M third_party/WebKit/LayoutTests/fast/table/percent-height-replaced-content-in-cell.html View 1 2 1 chunk +8 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableCell.cpp View 1 2 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (18 generated)
rhogan
3 years, 7 months ago (2017-04-30 08:58:40 UTC) #12
rhogan
https://codereview.chromium.org/2851513004/diff/20001/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp File third_party/WebKit/Source/core/layout/LayoutTableCell.cpp (right): https://codereview.chromium.org/2851513004/diff/20001/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp#newcode217 third_party/WebKit/Source/core/layout/LayoutTableCell.cpp:217: OK I know this is ugly, but I think ...
3 years, 7 months ago (2017-05-01 16:12:38 UTC) #13
mstensho (USE GERRIT)
I'll get to this as soon as I can. One comment on the test in ...
3 years, 7 months ago (2017-05-03 16:21:51 UTC) #14
mstensho (USE GERRIT)
https://codereview.chromium.org/2851513004/diff/20001/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp File third_party/WebKit/Source/core/layout/LayoutTableCell.cpp (right): https://codereview.chromium.org/2851513004/diff/20001/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp#newcode209 third_party/WebKit/Source/core/layout/LayoutTableCell.cpp:209: // We don't want the preferred width from children ...
3 years, 7 months ago (2017-05-12 11:44:07 UTC) #15
rhogan
https://codereview.chromium.org/2851513004/diff/20001/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp File third_party/WebKit/Source/core/layout/LayoutTableCell.cpp (right): https://codereview.chromium.org/2851513004/diff/20001/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp#newcode209 third_party/WebKit/Source/core/layout/LayoutTableCell.cpp:209: // We don't want the preferred width from children ...
3 years, 7 months ago (2017-05-12 19:12:23 UTC) #16
mstensho (USE GERRIT)
https://codereview.chromium.org/2851513004/diff/20001/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp File third_party/WebKit/Source/core/layout/LayoutTableCell.cpp (right): https://codereview.chromium.org/2851513004/diff/20001/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp#newcode209 third_party/WebKit/Source/core/layout/LayoutTableCell.cpp:209: // We don't want the preferred width from children ...
3 years, 7 months ago (2017-05-15 06:50:09 UTC) #17
rhogan
On 2017/05/15 at 06:50:09, mstensho wrote: > https://codereview.chromium.org/2851513004/diff/20001/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp > File third_party/WebKit/Source/core/layout/LayoutTableCell.cpp (right): > > https://codereview.chromium.org/2851513004/diff/20001/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp#newcode209 ...
3 years, 7 months ago (2017-05-15 20:52:42 UTC) #18
mstensho (USE GERRIT)
OK, let there be wrinkles! But I want them neat! :) https://codereview.chromium.org/2851513004/diff/20001/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp File third_party/WebKit/Source/core/layout/LayoutTableCell.cpp (right): ...
3 years, 7 months ago (2017-05-16 07:57:54 UTC) #19
rhogan
On 2017/05/16 at 07:57:54, mstensho wrote: > OK, let there be wrinkles! But I want ...
3 years, 7 months ago (2017-05-16 18:29:44 UTC) #22
mstensho (USE GERRIT)
I think this is as good as it gets. I like the repeated "if (content_height ...
3 years, 7 months ago (2017-05-16 18:35:57 UTC) #23
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/2851513004/40001
3 years, 7 months ago (2017-05-16 21:45:45 UTC) #27
commit-bot: I haz the power
3 years, 7 months ago (2017-05-16 22:15:42 UTC) #30
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/03d66d9ce1e602df26a9d544d925...

Powered by Google App Engine
This is Rietveld 408576698