Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/cssom/InlineStylePropertyMap.cpp |
| diff --git a/third_party/WebKit/Source/core/css/cssom/InlineStylePropertyMap.cpp b/third_party/WebKit/Source/core/css/cssom/InlineStylePropertyMap.cpp |
| index 43299903125d63987626dbe3b4c2c8309ca39f4f..aaf30f197b81d13891969da20a3b114089312746 100644 |
| --- a/third_party/WebKit/Source/core/css/cssom/InlineStylePropertyMap.cpp |
| +++ b/third_party/WebKit/Source/core/css/cssom/InlineStylePropertyMap.cpp |
| @@ -54,7 +54,15 @@ Vector<String> InlineStylePropertyMap::getProperties() |
| StylePropertySet& inlineStyleSet = m_ownerElement->ensureMutableInlineStyle(); |
| for (unsigned i = 0; i < inlineStyleSet.propertyCount(); i++) { |
| CSSPropertyID propertyID = inlineStyleSet.propertyAt(i).id(); |
| - result.append(getPropertyNameString(propertyID)); |
| + if (propertyID == CSSPropertyVariable) { |
| + StylePropertySet::PropertyReference propertyReference = inlineStyleSet.propertyAt(i); |
| + const CSSCustomPropertyDeclaration& customDeclaration = toCSSCustomPropertyDeclaration(propertyReference.value()); |
| + result.append(customDeclaration.name()); |
| + } else if (propertyID == CSSPropertyApplyAtRule) { |
| + result.append("@apply"); |
| + } else if (propertyID >= firstCSSProperty && propertyID <= lastUnresolvedCSSProperty) { |
|
sashab
2016/08/08 05:30:38
This should really be a function... But it's used
meade_UTC10
2016/08/08 06:04:00
Oops, that shouldn't even be there! Removed.
|
| + result.append(getPropertyNameString(propertyID)); |
| + } |
| } |
| return result; |
| } |