Description[CSS Grid Layout] Avoid unneeded calls to hasDefiniteLogicalSize()
r189895 was introducing a performance regression on grid layout tests.
The problem is that hasDefiniteLogicalSize() is slower than the previous
check (logicalSize.isIntrinsicOrAuto()).
However, it's not needed to call always hasDefiniteLogicalSize(), only
when the values are percentages. Thus, this patch is modifying the logic
to only call hasDefiniteLogicalSize() when it's really needed in order
to reduce the performance overhead.
BUG=457606
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191145
Patch Set 1 #Patch Set 2 : Rebased patch after LayoutGrid rename #Messages
Total messages: 7 (2 generated)
|