[Webkit-unassigned] [Bug 92163] flexitems can overflow the flexbox due to rounding

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 24 15:14:32 PDT 2012


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





--- Comment #2 from Emil A Eklund <eae at chromium.org>  2012-07-24 15:14:37 PST ---
The problem might be the following code in RenderFlexibleBox::resolveFlexibleLengths:

            if (availableFreeSpace > 0 && totalFlexGrow > 0 && flexSign == PositiveFlexibility && isfinite(totalFlexGrow))
                childSize += static_cast<int>(lroundf(availableFreeSpace * child->style()->flexGrow() / totalFlexGrow));
            else if (availableFreeSpace < 0 && totalWeightedFlexShrink > 0 && flexSign == NegativeFlexibility && isfinite(totalWeightedFlexShrink))
                childSize += static_cast<int>(lroundf(availableFreeSpace * child->style()->flexShrink() * preferredChildSize / totalWeightedFlexShrink));

-- 
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