Index: Source/core/css/resolver/StyleBuilderCustom.cpp |
diff --git a/Source/core/css/resolver/StyleBuilderCustom.cpp b/Source/core/css/resolver/StyleBuilderCustom.cpp |
index d03868a8a58b5ac6f70bb04ac393ae8569d0cda2..2ebfdca92953d3be6c553915a7f5c749a96cb4c3 100644 |
--- a/Source/core/css/resolver/StyleBuilderCustom.cpp |
+++ b/Source/core/css/resolver/StyleBuilderCustom.cpp |
@@ -323,7 +323,16 @@ void StyleBuilderFunctions::applyValueCSSPropertyGridTemplateAreas(StyleResolver |
} |
CSSGridTemplateAreasValue* gridTemplateAreasValue = toCSSGridTemplateAreasValue(value); |
- state.style()->setNamedGridArea(gridTemplateAreasValue->gridAreaMap()); |
+ const NamedGridAreaMap& newNamedGridAreas = gridTemplateAreasValue->gridAreaMap(); |
+ |
+ NamedGridLinesMap namedGridColumnLines = state.style()->namedGridColumnLines(); |
+ NamedGridLinesMap namedGridRowLines = state.style()->namedGridRowLines(); |
+ StyleBuilderConverter::createImplicitNamedGridLinesFromGridArea(newNamedGridAreas, namedGridColumnLines, ForColumns); |
+ StyleBuilderConverter::createImplicitNamedGridLinesFromGridArea(newNamedGridAreas, namedGridRowLines, ForRows); |
+ state.style()->setNamedGridColumnLines(namedGridColumnLines); |
+ state.style()->setNamedGridRowLines(namedGridRowLines); |
+ |
+ state.style()->setNamedGridArea(newNamedGridAreas); |
state.style()->setNamedGridAreaRowCount(gridTemplateAreasValue->rowCount()); |
state.style()->setNamedGridAreaColumnCount(gridTemplateAreasValue->columnCount()); |
} |