DescriptionAvoid calculating style for ::before/::after without content.
A universal ::before or ::after rule without content triggers calculation
of pseudo style for most elements on theverge.com just to find that most of
them won't be rendered due to the missing content.
Check if matching ::before or ::after rules actually contain a content
value before marking the render style with setHasPseudoStyle.
This change reduces the style recalc time by ~50% when expanding the
comments section on theverge.com articles.
R=esprehn@chromium.org,eseidel@chromium.org
BUG=412558
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182308
Patch Set 1 #Patch Set 2 : Rebased #
Messages
Total messages: 13 (1 generated)
|