DescriptionAllow setNeedsLayout on positioned objects when no parent container
We assert !needsLayout in a LayoutCounter contained within a
positioned block flow element. The condition arises due to code
in LayoutObject::markContainerChainForLayout which refuses
to mark objects with no container for layout, under the
commented assumption that it means the object is not attached to
the tree.
Failure to layout the counter results in stale text layout
inside the counter, which is very bad. Because the path from
the counter to the root is never marked as needing layout, the
counter will not ever get laid out.
This patch adds a condition for positioned objects so that they
do get marked for layout.
Test added to clusterfuzz.
R=ojan@chromium.org,esphren@chromium.org
BUG=492490
Patch Set 1 #
Messages
Total messages: 13 (4 generated)
|