Chromium Code Reviews
Description[css-align] Check runtime flags for align-items 'auto' value resolution
The StyleAdjuster::adjustStyleForAlignment logic is optimized to avoid
resolving 'auto' values on alignment properties using its parent's
align-items default value. This way we can minimize the copy-on-write
overhead, since 'auto' is the default value of some CSS Alignment
properties.
However, align-items default value is different depending on whether the
CSS Grid Layout feature is enabled in runtime flags or not. We were not
checking out the runtime flags when applying the optimization mentioned
before, hence, when Grid is disabled, we are overwriting all the
align-self properties with 'auto' values (the default) with its parent's
align-items default value (stretch). This was verified as the root cause
of the performance regression reported in bug 642263.
This patch solves the issue by using the proper default value, depending
on the runtime flags, when evaluating whether resolving the align-self's
'auto' values or not.
BUG=642263
Committed: https://crrev.com/bab582c0efeee11acecc6754e91d1af982044bd1
Cr-Commit-Position: refs/heads/master@{#415795}
Patch Set 1 #Patch Set 2 : Using Default-Alignment initial value instead of a harcode default value. #
Messages
Total messages: 17 (7 generated)
|
||||||||||||||||||||||||||||