Avoid unnecessary style recalculation