DescriptionSet multiplier to 1 on blocks with no direct text children.
This fixes cases where a node that previously had a >1 multiplier ceases to have direct text children. This can happen if its text content is removed in script, or if its 'display' style is changed from inline to block. (There are probably other ways for it to happen also.)
Previously such a node would have a "stale" multiplier, since the autosizer only updated multipliers on text nodes and their immediate parents. In theory the stale multiplier should not have affected the rendering, but:
- it is observable through the lineHeight property, and
- due to http://crbug.com/380903 the stale multiplier on an ancestor might be used to render text, even when the text node has the correct multiplier
BUG=378959
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175603
Patch Set 1 : #
Total comments: 8
Patch Set 2 : #
Messages
Total messages: 17 (0 generated)
|