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

Issue 2535173006: Percent height border-box content should get correct height in percent height cells (Closed)

Created:
4 years ago by rhogan
Modified:
4 years ago
Reviewers:
eae
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/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Percent height border-box content should get correct height in percent height cells "For the purpose of calculating [the minimum height of a row], descendants of table cells whose height depends on percentages of their parent cell's height are considered to have an auto height if they have overflow set to visible or hidden or if they are replaced elements, and a 0px height if they have not." This CL does two things re this rule: - It ensures we respect it for replaced elements, including ones that aren't LayoutReplaced or isReplaced() objects. This is covered by the table-percent- height-* tests. - It ensures we always obey it for hidden/visible overflow elements. The CL also does two other things: - If the cell doesn't have a specified height then treat it as auto for the purposes of calculating percent heights of its children. See bug 671010 for the discussion that leads to this approach - soon to be specified we hope. Note that this results in the new behaviour of the form control elements in table-percent-height-* tests: they size as they would if they were in auto- sized <div>. Again, see bug 671010. We introduce a 'regression' in the behaviour of radio/select elements when percent-sized inside a cell that has no specified height - they now behave the same as radio/select elements when inside a div with auto height, they get a zero height. This is covered specifically in input-radio-height-inside-auto-container.html. It can also be seen in the updates to table-percent-height.html. - If we've computed the height of a cell's child using the height made available by the cell, then be sure to respect content-/border-sizing of the child. We were just assuming that children were always content-sized. These are covered by the percent-height-border-box-content-* tests and are the main fall-out in 669867. BUG=669867, 671010 Committed: https://crrev.com/6c6315ec5c5ca31be742ebbe13cfecb43baae21a Cr-Commit-Position: refs/heads/master@{#438652}

Patch Set 1 #

Patch Set 2 : bug 669867 #

Patch Set 3 : bug 669867 #

Patch Set 4 : bug 669867 #

Patch Set 5 : bug 669867 #

Patch Set 6 : bug 669867 #

Patch Set 7 : bug 669867 #

Total comments: 1

Patch Set 8 : bug 669867 #

Patch Set 9 : bug 669867 #

Patch Set 10 : bug 669867 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -113 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/replaced/input-radio-height-inside-auto-container.html View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/replaced/input-radio-height-inside-auto-container-expected.html View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/replaced/table-percent-height.html View 1 2 3 4 5 3 chunks +5 lines, -23 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/replaced/table-percent-height-text-controls.html View 1 2 2 chunks +7 lines, -26 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/table/percent-height-border-box-content-in-cell.html View 1 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/table/percent-height-border-box-content-in-cell-2.html View 1 1 chunk +14 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/table/percent-height-border-box-content-in-cell-2-expected.txt View 1 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/table/percent-height-border-box-content-in-cell-3.html View 1 1 chunk +14 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/table/percent-height-border-box-content-in-cell-3-expected.txt View 1 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/table/percent-height-border-box-content-in-cell-expected.html View 1 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/table/003-expected.png View 1 2 3 4 5 6 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/table/003-expected.txt View 1 2 3 4 5 6 6 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/table/split-table-section-before-anonymous-block-2-expected.png View 1 2 3 4 5 6 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/table/split-table-section-before-anonymous-block-2-expected.txt View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/table/split-table-section-before-anonymous-block-4-expected.png View 1 2 3 4 5 6 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/table/split-table-section-before-anonymous-block-4-expected.txt View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/tables/mozilla/bugs/bug30692-expected.png View 1 2 3 4 5 6 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/tables/mozilla/bugs/bug30692-expected.txt View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/fast/replaced/table-percent-height-expected.txt View 1 2 3 4 5 6 1 chunk +10 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/fast/replaced/table-percent-height-text-controls-expected.txt View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 4 5 6 7 8 9 4 chunks +24 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableSection.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -9 lines 0 comments Download

Messages

Total messages: 57 (52 generated)
rhogan
4 years ago (2016-12-12 19:50:12 UTC) #34
eae
LGTM w/suggestion https://codereview.chromium.org/2535173006/diff/120001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2535173006/diff/120001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode3195 third_party/WebKit/Source/core/layout/LayoutBox.cpp:3195: bool treatAsReplaced = node() && node()->isElementNode() && ...
4 years ago (2016-12-12 19:55:19 UTC) #35
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/2535173006/180001
4 years ago (2016-12-14 22:25:10 UTC) #52
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years ago (2016-12-14 22:31:25 UTC) #55
commit-bot: I haz the power
4 years ago (2016-12-14 22:32:56 UTC) #57
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/6c6315ec5c5ca31be742ebbe13cfecb43baae21a
Cr-Commit-Position: refs/heads/master@{#438652}

Powered by Google App Engine
This is Rietveld 408576698