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

Issue 1228373007: Compute the correct overflow-x and overflow-y values for table elements (Closed)

Created:
5 years, 5 months ago by rhogan
Modified:
5 years, 3 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, dglazkov+blink, rwlbuis
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Compute the correct overflow-x and overflow-y values for table elements This is a second attempt at https://codereview.chromium.org/265493010/. I've added and cleaned up, where appropriate, the tests from that CL. The relevant parts of the spec are: http://dev.w3.org/csswg/css2/visufx.html#overflow, which tells us that display:table must treat anything other than hidden as visible, and http://dev.w3.org/csswg/css-overflow-3/#propdef-overflow-x, which tells us that if overflow-x and overflow-y are different, how they must be resolved. This second part is already taken care of, we're just allowing it to be applied to tables and table parts now. The CL brings us into line with FF, IE and Presto with the exception of how we treat tables that have display:block and an overflow value of other than visible. We still don't put scrollbars on such a table when we possibly ought to. BUG=368699 Committed: https://crrev.com/6283c205add05e57d89035f6552240a7e5569cc9 git-svn-id: svn://svn.chromium.org/blink/trunk@199640 bbb929c8-8fbe-4397-9dbb-9b2b20218538

Patch Set 1 #

Total comments: 10

Patch Set 2 : Updated #

Patch Set 3 : Updated #

Total comments: 6

Patch Set 4 : Updated #

Total comments: 5

Patch Set 5 : Updated #

Patch Set 6 : Updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -12 lines) Patch
A LayoutTests/fast/table/overflowScroll.html View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/overflowScroll-display-block.html View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/overflowScroll-display-block-expected.html View 1 1 chunk +17 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/overflowScroll-expected.html View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/table-different-overflow-values.html View 1 2 3 4 1 chunk +36 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/table-different-overflow-values-2.html View 1 2 3 4 1 chunk +36 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/table-different-overflow-values-2-expected.txt View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/table-different-overflow-values-expected.txt View 1 chunk +21 lines, -0 lines 0 comments Download
M Source/core/css/resolver/StyleAdjuster.cpp View 1 2 3 4 2 chunks +18 lines, -12 lines 0 comments Download

Messages

Total messages: 20 (4 generated)
rhogan
5 years, 5 months ago (2015-07-16 11:57:32 UTC) #2
Julien - ping for review
https://codereview.chromium.org/1228373007/diff/1/LayoutTests/fast/table/overflowScroll.html File LayoutTests/fast/table/overflowScroll.html (right): https://codereview.chromium.org/1228373007/diff/1/LayoutTests/fast/table/overflowScroll.html#newcode1 LayoutTests/fast/table/overflowScroll.html:1: <style> Cough, cough, <!DOCTYPE>, cough, cough (not repeated to ...
5 years, 5 months ago (2015-07-16 14:58:13 UTC) #3
Julien - ping for review
lgtm! (+Morten as the other table czar)
5 years, 5 months ago (2015-07-16 14:58:48 UTC) #5
mstensho (USE GERRIT)
Didn't go through the tests. Also, I didn't quite understand the last paragraph in the ...
5 years, 5 months ago (2015-07-16 20:00:07 UTC) #6
Julien - ping for review
https://codereview.chromium.org/1228373007/diff/1/Source/core/css/resolver/StyleAdjuster.cpp File Source/core/css/resolver/StyleAdjuster.cpp (right): https://codereview.chromium.org/1228373007/diff/1/Source/core/css/resolver/StyleAdjuster.cpp#newcode429 Source/core/css/resolver/StyleAdjuster.cpp:429: if (style.overflowX() != OVISIBLE && style.overflowX() != OHIDDEN) On ...
5 years, 5 months ago (2015-07-17 00:29:55 UTC) #7
rhogan
On 2015/07/17 at 00:29:55, jchaffraix wrote: > https://codereview.chromium.org/1228373007/diff/1/Source/core/css/resolver/StyleAdjuster.cpp > File Source/core/css/resolver/StyleAdjuster.cpp (right): > > https://codereview.chromium.org/1228373007/diff/1/Source/core/css/resolver/StyleAdjuster.cpp#newcode429 ...
5 years, 5 months ago (2015-07-23 08:32:54 UTC) #8
mstensho (USE GERRIT)
I think the code does the right thing now, but I really don't like the ...
5 years, 5 months ago (2015-07-27 09:33:30 UTC) #9
rhogan
https://codereview.chromium.org/1228373007/diff/40001/Source/core/css/resolver/StyleAdjuster.cpp File Source/core/css/resolver/StyleAdjuster.cpp (right): https://codereview.chromium.org/1228373007/diff/40001/Source/core/css/resolver/StyleAdjuster.cpp#newcode430 Source/core/css/resolver/StyleAdjuster.cpp:430: return overflow == OSCROLL || overflow == OAUTO || ...
5 years, 4 months ago (2015-07-27 18:18:55 UTC) #10
Julien - ping for review
https://codereview.chromium.org/1228373007/diff/40001/Source/core/css/resolver/StyleAdjuster.cpp File Source/core/css/resolver/StyleAdjuster.cpp (right): https://codereview.chromium.org/1228373007/diff/40001/Source/core/css/resolver/StyleAdjuster.cpp#newcode430 Source/core/css/resolver/StyleAdjuster.cpp:430: return overflow == OSCROLL || overflow == OAUTO || ...
5 years, 4 months ago (2015-07-27 20:08:34 UTC) #11
mstensho (USE GERRIT)
The code changes are fine now, but please take another look at the tests. https://codereview.chromium.org/1228373007/diff/60001/LayoutTests/fast/table/overflowScroll-display-block.html ...
5 years, 4 months ago (2015-07-27 21:13:11 UTC) #12
rhogan
https://codereview.chromium.org/1228373007/diff/60001/LayoutTests/fast/table/overflowScroll-display-block.html File LayoutTests/fast/table/overflowScroll-display-block.html (right): https://codereview.chromium.org/1228373007/diff/60001/LayoutTests/fast/table/overflowScroll-display-block.html#newcode16 LayoutTests/fast/table/overflowScroll-display-block.html:16: <table class="scrollingElement" cellspacing=0> On 2015/07/27 at 21:13:10, mstensho wrote: ...
5 years, 4 months ago (2015-07-28 18:40:10 UTC) #13
rhogan
On 2015/07/28 at 18:40:10, rhogan wrote: > https://codereview.chromium.org/1228373007/diff/60001/LayoutTests/fast/table/overflowScroll-display-block.html > File LayoutTests/fast/table/overflowScroll-display-block.html (right): > > https://codereview.chromium.org/1228373007/diff/60001/LayoutTests/fast/table/overflowScroll-display-block.html#newcode16 ...
5 years, 4 months ago (2015-07-28 18:44:15 UTC) #14
mstensho (USE GERRIT)
lgtm
5 years, 4 months ago (2015-07-29 08:18:26 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1228373007/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1228373007/90001
5 years, 4 months ago (2015-07-29 08:18:45 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:90001) as https://src.chromium.org/viewvc/blink?view=rev&revision=199640
5 years, 4 months ago (2015-07-29 08:21:44 UTC) #19
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 11:52:51 UTC) #20
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/6283c205add05e57d89035f6552240a7e5569cc9

Powered by Google App Engine
This is Rietveld 408576698