Simplify some Length comparisons with 'auto'
Using Length::IsAuto() is more efficient (and generates significantly less code) than constructing a new Length and comparing with that. Also replace some open-coded "is auto" checks with said method, and simplify the surrounding code a bit. Change-Id: I974a28a0eef969b56557428eb019f7cf1dac18c1 Reviewed-on: https://chromium-review.googlesource.com/806170Reviewed-by:Rune Lillesveen <futhark@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#521456}
Showing
Please register or sign in to comment