Description[FastTextAutosizer] Fix the inline overlap issue.
Inline renderers have preferred logical widths that end up depending on
the autosizing font scale. This patch forces these preferred widths to
be recomputed. This recomputation is not necessary for text in blocks
because the block layout algorithm does not depend on the text width.
The parent null check (renderer->parent()...) is for list markers
which, interestingly, can not be in the render tree.
This patch fixes rendering on many sites, including hacker news.
BUG=338494
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170638
Patch Set 1 #
Total comments: 6
Patch Set 2 : Cleanup test #Patch Set 3 : Move the pref width invalidation into inflate, add a test #Patch Set 4 : Really move setPreferredLogicalWidthsDirty #Patch Set 5 : Add fixme #Patch Set 6 : update expectations #
Messages
Total messages: 12 (0 generated)
|