[Webkit-unassigned] [Bug 88741] Width not properly recalculated with -webkit-box-sizing: border-box
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jun 21 13:44:28 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=88741
Kulanthaivel Palanichamy <kulanthaivel at codeaurora.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #148879| |review?
Flag| |
--- Comment #1 from Kulanthaivel Palanichamy <kulanthaivel at codeaurora.org> 2012-06-21 13:44:28 PST ---
Created an attachment (id=148879)
--> (https://bugs.webkit.org/attachment.cgi?id=148879&action=review)
Proposed patch
Ideally we should have been able to detect content box size change in RenderBlock::recomputeLogicalWidth(), but
unfortunately we never keep the old style in RenderObject to compare old border and padding values.
One another possible fix could be compare the old and new styles in RenderBox::styleDidChange() for
border and padding change when box-sizing is border-box, set setChildNeedsLayout(true),
then force relayout on children in RenderBlock::layoutBlockChildren() if normalChildNeedsLayout() is true.
--
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