DescriptionTable 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 : #Messages
Total messages: 14 (0 generated)
|