[Webkit-unassigned] [Bug 52185] Cell heights are disproportional when a row-spanning cell contains a block element that determines the height of the rows

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 3 03:35:25 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=52185





--- Comment #31 from Suchit Agrawal <a.suchit at samsung.com>  2013-05-03 03:33:46 PST ---
(In reply to comment #28)
> (From update of attachment 200387 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=200387&action=review
> 
> Looks pretty good. A couple of comments.
> 
> > Source/WebCore/rendering/RenderTableSection.cpp:279
> > +    Vector<RenderTableCell*> rowspanCells;
> 
> This should be rowSpanCells (capitalize the S).
> 
> I imagine this is empty or small most of the time, so maybe give it a small inline capacity, e.g.,
> 
3-4 rowSpan cells are very common so I used 5 for inline capacity.

> Vector<RenderTableCell*, 2> rowSpanCells;
> 
> > Source/WebCore/rendering/RenderTableSection.cpp:346
> > +    if (rowspanCells.size() > 0) {
> 
> We should pull all this code into a helper function rather than making calcRowLogicalHeight so much bigger and just call the helper function if rowspanCells is non-empty.
> 
> if (!rowSpanCells.isEmpty())
>     callHelperFunction(rowSpanCells);
> 
I put all this code in new function 'distributeRowSpanHeightToRows()' and did changes as per your comment.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list