DescriptionEarly return when doing tagName based adjustments in StyleAdjuster
adjustRenderStyle is 2% of the recalcStyle cost and 1.5% of the time
in the peacekeeper benchmark. This patch adds an early out when adjusting
the element's style based on the tagName since after one match on the
tagName no other cases can match. It also adds a check for <div> and <span>
which are the most common elements and never need adjustment to skip
all the rest of the tagName checks.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169406
Patch Set 1 #Patch Set 2 : -> to . #Patch Set 3 : typo #Patch Set 4 : Never skip applying intrinsic margins #
Messages
Total messages: 24 (0 generated)
|