[css-grid] Avoid computing available space if gap is not a percentage
This patch modifies LayoutGrid::gridGapForDirection() because we only need to calculate the available space if the grid gap is a percentage. Otherwise we can skip this operation. BUG=615248 Review-Url: https://codereview.chromium.org/2325573003 Cr-Commit-Position: refs/heads/master@{#417568}
Showing
Please register or sign in to comment