[Webkit-unassigned] [Bug 59483] Wrong width after parent’s padding changes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 12 12:51:00 PDT 2011


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


Mihnea Ovidenie <mihnea at adobe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mihnea at adobe.com




--- Comment #1 from Mihnea Ovidenie <mihnea at adobe.com>  2011-05-12 12:51:00 PST ---
Hi,

I have taken a look at this issue. 

<div id="parent">
    <div id="child">Lorem ipsum ...</div>
</div>

The problem appears when the element "child" is a block element. When the padding of the "parent" for the block element changes, the "parent" is marked as needing layout. However, the "child" element is not marked as needing layout. When the parent is in the process of laying out its children, the layout stops when it reaches the "child" element.

If the "child" element is an inline element, when the "parent" is laid out, "child" element is layout too, being an inline element in a block element.

I was wondering whether it would be ok to modify styleDidChange so that when padding changes, the block children of the element with modified padding should be marked as needing layout? I have tried a change like this, it did not introduce any regression in the existing layout tests. Are there any tests that verify the performance of layout process?

Regards,
Mihnea

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