[Webkit-unassigned] [Bug 15374] RenderBox::availableHeightUsing() contains left/right -> top/bottom typo
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Oct 7 19:03:49 PDT 2007
http://bugs.webkit.org/show_bug.cgi?id=15374
------- Comment #4 from ddkilzer at webkit.org 2007-10-07 19:03 PDT -------
(In reply to comment #2)
> (From update of attachment 16535 [edit])
> Lets construct a test -- we can start by giving a giant borderLeft to a table
> cell to trigger this code, and then figure out something affected by the result
> of availableHeightUsing.
The problem is that I need to construct an HTML table cell with an internal
overrideSize set to return a large positive integer so that this calculation in
RenderBox::availableHeightUsing(const Length&) doesn't return a large negative
integer:
if (isTableCell() && (h.isAuto() || h.isPercent()))
return overrideSize() - (borderLeft() + borderRight() + paddingLeft() +
paddingRight());
Otherwise, setting a border or a padding to a large positive integer (like
1000px) results in a large negative integer being returned from
RenderBox::availableHeightUsing(), which is returned from
RenderBox::availableHeight(), which is returned from
RenderBox::calcReplacedHeightUsing(), which then is "lost" in the return
statement for RenderBox::calcReplacedHeight() since it's so small (much less
than zero).
Any idea how to construct a table cell with a large internal overrideSize?
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list