DescriptionMake ::first-line invalidation work when added or removed.
We were only invalidating ::first-line properly when both old and new
ComputedStyle contained ::first-line styles. Now, instead call
setNeedsLayoutAndPrefWidthsRecalc to trigger changes when either old or
new ComputedStyle does not have ::first-line style.
The ::first-line invalidation is moved from Element to LayoutObject,
and unnecessary traversal code removed.
I have not been able to come up with a case where we need to compare
PseudoIdFirstLineInherited style, so diffing that is removed.
R=mstensho@opera.com
BUG=562418, 564239, 689979
Review-Url: https://codereview.chromium.org/2728383002
Cr-Commit-Position: refs/heads/master@{#455088}
Committed: https://chromium.googlesource.com/chromium/src/+/3f2d0c6bbce99fc2880356ff2ebfd323b5bcd8bc
Patch Set 1 #
Total comments: 4
Patch Set 2 : Fixed review issues. #Messages
Total messages: 17 (10 generated)
|