[css-grid] Fix line name positions after auto repeat with no line names
When serializing grid-template-rows/columns of a grid container, we need to handle auto repeat() specially in order to insert the line names at the correct places. Before this patch, this was skipped for indices before the insertion point of the auto repeat, and in case the auto repeat had no line name. The latter logic was wrong, if there is an auto repeat we still need the special code after the insertion point, even if it has no line names. The proper condition to check is whether there is no auto repeat. The patch also avoids a 2nd call to GridAutoRepeatRows/Columns since we already have the value in a variable. BUG=1011329 TEST=external/wpt/css/css-grid/parsing/grid-template-columns-computed-nogrid.html TEST=external/wpt/css/css-grid/parsing/grid-template-columns-computed.html TEST=external/wpt/css/css-grid/parsing/grid-template-rows-computed-nogrid.html TEST=external/wpt/css/css-grid/parsing/grid-template-rows-computed-withcontent.html TEST=external/wpt/css/css-grid/parsing/grid-template-rows-computed.html There are some test failures because integer repeat() is still expanded at computed-value time (http://crbug.com/989004). Change-Id: I16d06275384ab8c7866b4981ba8dcc665258b29d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1857125Reviewed-by:Manuel Rego <rego@igalia.com> Commit-Queue: Oriol Brufau <obrufau@igalia.com> Cr-Commit-Position: refs/heads/master@{#708661}
Showing
Please register or sign in to comment