Index: third_party/WebKit/Source/core/css/StylePropertySerializer.cpp |
diff --git a/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp b/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp |
index 7ad9a76e274473036db60f48f2e50bce9d99de11..229aa9253e3dd33f7ad25875bd75d734b1008f0a 100644 |
--- a/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp |
+++ b/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp |
@@ -455,7 +455,9 @@ String StylePropertySerializer::getPropertyValue( |
case CSSPropertyGridGap: |
return getShorthandValue(gridGapShorthand()); |
case CSSPropertyPlaceContent: |
- return placeContentPropertyValue(); |
+ return getAlignmentShorthandValue(placeContentShorthand()); |
+ case CSSPropertyPlaceItems: |
+ return getAlignmentShorthandValue(placeItemsShorthand()); |
case CSSPropertyFont: |
return fontValue(); |
case CSSPropertyFontVariant: |
@@ -850,10 +852,11 @@ String StylePropertySerializer::getCommonValue( |
return res; |
} |
-String StylePropertySerializer::placeContentPropertyValue() const { |
- String value = getCommonValue(placeContentShorthand()); |
+String StylePropertySerializer::getAlignmentShorthandValue( |
+ const StylePropertyShorthand& shorthand) const { |
+ String value = getCommonValue(shorthand); |
if (value.isNull() || value.isEmpty()) |
- return getShorthandValue(placeContentShorthand()); |
+ return getShorthandValue(shorthand); |
return value; |
} |