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

Issue 23503083: Table conent is rendered over the border when colspan present with rowspan. (Closed)

Created:
7 years, 3 months ago by a.suchit
Modified:
7 years, 3 months ago
CC:
blink-reviews, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Table conent is rendered over the border when colspan present with rowspan. Some height is given to all row with only spanning cells even it is not required. If row spanning cell content is flowing out of cell boundries then only row with only spanning cells gets one part of spanning cell's height. Both functions isHeightNeededForRowHavingOnlySpanningCells() and rowHasOnlySpanningCells() are different. logic is same in both but resultant from both based on different criteria. rowHasOnlySpanningCells() returns true when only spanning cells present in row. isHeightNeededForRowHavingOnlySpanningCells() returns true when height of one or more spanning cells in row is not having expected height. Example 1: <tr><td rowspan="2">r0c0</td></tr><tr><td>r1c1</td></tr> Example 2: <tr><td rowspan="3">r0c0</td><td>r0c1</td></tr><tr><td>r1c1</td></tr> In these example, first row in first example and third row in second example always should have 0 height. If rowHasOnlySpanningCells() condition is not there then first row will get height when isHeightNeededForRowHavingOnlySpanningCells() will return true. R=jchaffraix@chromium.org BUG=295500 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=158175

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -36 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M LayoutTests/fast/table/007-expected.txt View 2 chunks +5 lines, -5 lines 0 comments Download
M LayoutTests/platform/linux/fast/table/007-expected.png View Binary file 0 comments Download
M LayoutTests/platform/linux/fast/table/colspanMinWidth-expected.png View Binary file 0 comments Download
M LayoutTests/platform/linux/fast/table/colspanMinWidth-vertical-expected.png View Binary file 0 comments Download
M LayoutTests/platform/linux/fast/table/spanOverlapRepaint-expected.png View Binary file 0 comments Download
M LayoutTests/platform/linux/tables/mozilla/bugs/bug6304-expected.png View Binary file 0 comments Download
M LayoutTests/platform/win/fast/table/colspanMinWidth-expected.txt View 2 chunks +6 lines, -6 lines 0 comments Download
M LayoutTests/platform/win/fast/table/colspanMinWidth-vertical-expected.txt View 1 chunk +7 lines, -7 lines 0 comments Download
M LayoutTests/platform/win/fast/table/spanOverlapRepaint-expected.txt View 2 chunks +6 lines, -6 lines 0 comments Download
M LayoutTests/platform/win/tables/mozilla/bugs/bug6304-expected.txt View 2 chunks +11 lines, -11 lines 0 comments Download
M Source/core/rendering/RenderTableSection.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderTableSection.cpp View 1 2 2 chunks +31 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
suchit.agrawal
7 years, 3 months ago (2013-09-20 09:58:02 UTC) #1
Julien - ping for review
https://codereview.chromium.org/23503083/diff/1/Source/core/rendering/RenderTableSection.cpp File Source/core/rendering/RenderTableSection.cpp (right): https://codereview.chromium.org/23503083/diff/1/Source/core/rendering/RenderTableSection.cpp#newcode451 Source/core/rendering/RenderTableSection.cpp:451: } This really looks like it should be folded ...
7 years, 3 months ago (2013-09-20 18:34:52 UTC) #2
suchit.agrawal
https://codereview.chromium.org/23503083/diff/1/Source/core/rendering/RenderTableSection.cpp File Source/core/rendering/RenderTableSection.cpp (right): https://codereview.chromium.org/23503083/diff/1/Source/core/rendering/RenderTableSection.cpp#newcode485 Source/core/rendering/RenderTableSection.cpp:485: if (!spanningRowsHeight.rowHeight[row] && rowHasOnlySpanningCells(actualRow) && isHeightNeededForRowHavingOnlySpanningCells(actualRow)) { On 2013/09/20 ...
7 years, 3 months ago (2013-09-20 22:12:00 UTC) #3
Julien - ping for review
We talked about the patch on IRC and Suchit explained why the 2 concepts are ...
7 years, 3 months ago (2013-09-21 00:52:13 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/a.suchit@samsung.com/23503083/1
7 years, 3 months ago (2013-09-21 03:15:56 UTC) #5
commit-bot: I haz the power
Failed to apply patch for LayoutTests/TestExpectations: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 3 months ago (2013-09-21 03:16:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/a.suchit@samsung.com/23503083/1
7 years, 3 months ago (2013-09-21 03:16:56 UTC) #7
commit-bot: I haz the power
Failed to apply patch for LayoutTests/TestExpectations: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 3 months ago (2013-09-21 03:17:00 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/a.suchit@samsung.com/23503083/16001
7 years, 3 months ago (2013-09-23 06:35:46 UTC) #9
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-23 07:28:55 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/a.suchit@samsung.com/23503083/33001
7 years, 3 months ago (2013-09-23 09:25:00 UTC) #11
commit-bot: I haz the power
Failed to apply patch for LayoutTests/TestExpectations: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 3 months ago (2013-09-23 09:25:06 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/a.suchit@samsung.com/23503083/42001
7 years, 3 months ago (2013-09-23 09:31:20 UTC) #13
commit-bot: I haz the power
7 years, 3 months ago (2013-09-23 10:43:41 UTC) #14
Message was sent while issue was closed.
Change committed as 158175

Powered by Google App Engine
This is Rietveld 408576698