Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(636)

Unified Diff: third_party/WebKit/Source/core/css/StylePropertySerializer.cpp

Issue 2662573002: [css-align] Implement place-content alignment shorthand (Closed)
Patch Set: Patch rebased. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 9314b06ae97423589b461c50200d0c9f4609b704..edca4c4aefafcb7f534810fff6309479251d0b97 100644
--- a/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp
+++ b/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp
@@ -454,6 +454,8 @@ String StylePropertySerializer::getPropertyValue(
return getShorthandValue(gridAreaShorthand(), " / ");
case CSSPropertyGridGap:
return getShorthandValue(gridGapShorthand());
+ case CSSPropertyPlaceContent:
+ return placeContentPropertyValue();
case CSSPropertyFont:
return fontValue();
case CSSPropertyFontVariant:
@@ -848,6 +850,13 @@ String StylePropertySerializer::getCommonValue(
return res;
}
+String StylePropertySerializer::placeContentPropertyValue() const {
+ String value = getCommonValue(placeContentShorthand());
+ if (value.isNull() || value.isEmpty())
+ return getShorthandValue(placeContentShorthand());
+ return value;
+}
+
String StylePropertySerializer::borderPropertyValue() const {
const StylePropertyShorthand properties[3] = {
borderWidthShorthand(), borderStyleShorthand(), borderColorShorthand()};

Powered by Google App Engine
This is Rietveld 408576698