Ignore:
Timestamp:
Oct 26, 2021, 10:08:08 AM (4 years ago)
Author:
Ziran Sun
Message:

Fix CSS serialization affecting grid-auto-flow
https://bugs.webkit.org/show_bug.cgi?id=232240

Reviewed by Sergio Villar Senin.

LayoutTests/imported/w3c:

Update the following test and expectation files -

  • LayoutTests/fast/css-grid-layout/grid-auto-flow-get-set-expected.txt:
  • LayoutTests/fast/css-grid-layout/grid-auto-flow-get-set.html:
  • LayoutTests/fast/css-grid-layout/grid-shorthand-get-set-expected.txt:
  • LayoutTests/fast/css-grid-layout/grid-shorthand-get-set.html:
  • web-platform-tests/css/css-grid/grid-layout-properties-expected.txt:
  • web-platform-tests/css/css-grid/parsing/grid-auto-flow-computed-expected.txt:
  • web-platform-tests/css/css-grid/parsing/grid-auto-flow-valid-expected.txt:
  • web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-auto-flow.html:

Source/WebCore:

This is to fix the serialization issue of grid-auto-flow where the word 'row' has been
included necessarily.

This Change is an import of chromium CL at
https://chromium-review.googlesource.com/c/chromium/src/+/3179598

  • css/CSSComputedStyleDeclaration.cpp:

(WebCore::ComputedStyleExtractor::valueForPropertyInStyle):

  • css/parser/CSSPropertyParser.cpp:

(WebCore::consumeGridAutoFlow):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp

    r284718 r284876  
    30083008            auto list = CSSValueList::createSpaceSeparated();
    30093009            ASSERT(style.isGridAutoFlowDirectionRow() || style.isGridAutoFlowDirectionColumn());
    3010             if (style.isGridAutoFlowDirectionRow())
     3010            if (style.isGridAutoFlowDirectionColumn())
     3011                list->append(cssValuePool.createIdentifierValue(CSSValueColumn));
     3012            else if (!style.isGridAutoFlowAlgorithmDense())
    30113013                list->append(cssValuePool.createIdentifierValue(CSSValueRow));
    3012             else
    3013                 list->append(cssValuePool.createIdentifierValue(CSSValueColumn));
    30143014
    30153015            if (style.isGridAutoFlowAlgorithmDense())
Note: See TracChangeset for help on using the changeset viewer.