DescriptionFix infinite recursion in computePreferredLogicalWidths.
RenderReplaced::computeReplacedLogicalWidth walks up to it's
containingBlock in some cases and asks for the containingBlock's
width. If the containingBlock's width itself depends on the
RenderReplaced's width, then we infinite loop. Avoid the
infinite loop by making sure that width/min-width/max-width
are all specified on the containingBlock, which will keep
the width from depending on it's children.
Added FIXMEs. I think we should delete all this containingBlock
walking code, but it needs to be done carefully to make sure
percentage widths on <svg> keep working. The spec actually
considered this undefined behavior, but suggests doing the
crazy that we do here.
BUG=344647
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168511
Patch Set 1 #
Messages
Total messages: 7 (0 generated)
|