DescriptionSet intrinsic size for inline SVG earlier
LayoutReplaced has a m_intrinsicSize that's updated when computing
logical widths and heights (and only if needed; specified style makes
it not being set at all).
But m_intrinsicSize can be used earlier that that, when computing
preferred widths for the container, see
LayoutReplaced::computeIntrinsicLogicalWidths called from
LayoutReplaced::computePreferredLogicalWidths().
This patch computes the intrinsic size in the constructor to avoid
returning the stale default size.
BUG=468897
Committed: https://crrev.com/545b2183e1b4ee3eb433537f9a6386b5337d6588
Cr-Commit-Position: refs/heads/master@{#370388}
Patch Set 1 #Patch Set 2 : Don't override default intrinsic size with an empty size #Patch Set 3 : Avoid isEmpty(). Set individual width/height values. Add test for this. #
Messages
Total messages: 11 (3 generated)
|