| 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 ae217b6d488130767845519d84ab027f648ea01a..615f991ad41589aaa5a643c7b9f8d1188e4cc4fb 100644
|
| --- a/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp
|
| +++ b/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp
|
| @@ -25,6 +25,7 @@
|
| #include "core/CSSValueKeywords.h"
|
| #include "core/StylePropertyShorthand.h"
|
| #include "core/css/CSSCustomPropertyDeclaration.h"
|
| +#include "core/css/CSSPendingSubstitutionValue.h"
|
| #include "core/css/CSSPropertyMetadata.h"
|
| #include "core/css/CSSValuePool.h"
|
| #include "wtf/StdLibExtras.h"
|
| @@ -372,7 +373,8 @@ String StylePropertySerializer::commonShorthandChecks(const StylePropertyShortha
|
| return emptyString();
|
|
|
| // TODO(timloh): This should be isCSSWideKeyword()
|
| - if (longhands[0]->isInitialValue() || longhands[0]->isInheritedValue()) {
|
| + if (longhands[0]->isInitialValue() || longhands[0]->isInheritedValue()
|
| + || longhands[0]->isPendingSubstitutionValue()) {
|
| bool success = true;
|
| for (int i = 1; i < longhandCount; i++) {
|
| if (!longhands[i]->equals(*longhands[0])) {
|
| @@ -382,8 +384,11 @@ String StylePropertySerializer::commonShorthandChecks(const StylePropertyShortha
|
| break;
|
| }
|
| }
|
| - if (success)
|
| + if (success) {
|
| + if (longhands[0]->isPendingSubstitutionValue())
|
| + return toCSSPendingSubstitutionValue(longhands[0])->shorthandValue()->cssText();
|
| return longhands[0]->cssText();
|
| + }
|
| }
|
|
|
| bool allowInitial = allowInitialInShorthand(shorthand.id());
|
| @@ -675,6 +680,7 @@ String StylePropertySerializer::getLayeredShorthandValue(const StylePropertyShor
|
|
|
| for (size_t i = 0; i < size; i++) {
|
| values[i] = m_propertySet.getPropertyCSSValue(shorthand.properties()[i]);
|
| +
|
| if (values[i]->isBaseValueList()) {
|
| const CSSValueList* valueList = toCSSValueList(values[i]);
|
| numLayers = std::max(numLayers, valueList->length());
|
|
|