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

Issue 1591043002: Treat percent-height boxes inside auto-height cells as auto (Closed)

Created:
4 years, 11 months ago by dgrogan
Modified:
4 years, 11 months ago
CC:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@3_cell_height
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Treat percent-height div inside auto-height cells as auto This aligns blink with the spec and gecko. We previously used the cell height to calculate the height of the child element. BUG=353580 Committed: https://crrev.com/8876584335b48c99cf8df552ef4d8efebb131041 Cr-Commit-Position: refs/heads/master@{#371096}

Patch Set 1 #

Patch Set 2 : make layout tests all pass #

Total comments: 8

Patch Set 3 : remove comment line; check parent, not child #

Patch Set 4 : add TODO about table exception #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -4 lines) Patch
A third_party/WebKit/LayoutTests/fast/table/div-height-inside-auto-table-cell-is-auto.html View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/table/div-height-inside-auto-table-cell-is-auto-expected.txt View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 1 chunk +8 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
dgrogan
Morten, could you review this?
4 years, 11 months ago (2016-01-21 01:04:06 UTC) #4
mstensho (USE GERRIT)
https://codereview.chromium.org/1591043002/diff/20001/third_party/WebKit/LayoutTests/fast/table/div-height-inside-auto-table-cell-is-auto.html File third_party/WebKit/LayoutTests/fast/table/div-height-inside-auto-table-cell-is-auto.html (right): https://codereview.chromium.org/1591043002/diff/20001/third_party/WebKit/LayoutTests/fast/table/div-height-inside-auto-table-cell-is-auto.html#newcode26 third_party/WebKit/LayoutTests/fast/table/div-height-inside-auto-table-cell-is-auto.html:26: checkLayout('#child'); I suggest that you check #parent instead (which ...
4 years, 11 months ago (2016-01-21 20:21:33 UTC) #5
dgrogan
https://codereview.chromium.org/1591043002/diff/20001/third_party/WebKit/LayoutTests/fast/table/div-height-inside-auto-table-cell-is-auto.html File third_party/WebKit/LayoutTests/fast/table/div-height-inside-auto-table-cell-is-auto.html (right): https://codereview.chromium.org/1591043002/diff/20001/third_party/WebKit/LayoutTests/fast/table/div-height-inside-auto-table-cell-is-auto.html#newcode26 third_party/WebKit/LayoutTests/fast/table/div-height-inside-auto-table-cell-is-auto.html:26: checkLayout('#child'); On 2016/01/21 20:21:33, mstensho wrote: > I suggest ...
4 years, 11 months ago (2016-01-22 00:08:09 UTC) #6
mstensho (USE GERRIT)
https://codereview.chromium.org/1591043002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/1591043002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode2596 third_party/WebKit/Source/core/layout/LayoutBox.cpp:2596: // But FF doesn't apply this logic (1) in ...
4 years, 11 months ago (2016-01-22 10:15:37 UTC) #7
dgrogan
https://codereview.chromium.org/1591043002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/1591043002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode2596 third_party/WebKit/Source/core/layout/LayoutBox.cpp:2596: // But FF doesn't apply this logic (1) in ...
4 years, 11 months ago (2016-01-22 17:41:48 UTC) #8
mstensho (USE GERRIT)
lgtm to land this (unless you want to wait for more feedback from bzbarsky).
4 years, 11 months ago (2016-01-22 19:47:16 UTC) #9
dgrogan
On 2016/01/22 19:47:16, mstensho wrote: > lgtm to land this (unless you want to wait ...
4 years, 11 months ago (2016-01-22 21:32:07 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1591043002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1591043002/60001
4 years, 11 months ago (2016-01-22 21:33:25 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2016-01-23 00:15:51 UTC) #13
commit-bot: I haz the power
4 years, 11 months ago (2016-01-23 00:16:49 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8876584335b48c99cf8df552ef4d8efebb131041
Cr-Commit-Position: refs/heads/master@{#371096}

Powered by Google App Engine
This is Rietveld 408576698