| Index: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
|
| index 2b4ff3ae4788c600ffd16d197726f40d025ffade..27e94c1c960cfbbddb30e11ab4d2babdc55b6f5f 100644
|
| --- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
|
| +++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
|
| @@ -2679,6 +2679,22 @@ PassRefPtrWillBeRawPtr<CSSValue> ComputedStyleCSSValueMapping::get(CSSPropertyID
|
| list->append(cssValuePool().createValue(style.scale()->z(), CSSPrimitiveValue::UnitType::Number));
|
| return list.release();
|
| }
|
| + case CSSPropertyContain: {
|
| + if (!style.contain())
|
| + return cssValuePool().createIdentifierValue(CSSValueNone);
|
| + if (style.contain() == ContainsStrict)
|
| + return cssValuePool().createIdentifierValue(CSSValueStrict);
|
| +
|
| + RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
|
| + if (style.contain() & ContainsStyle)
|
| + list->append(cssValuePool().createIdentifierValue(CSSValueStyle));
|
| + if (style.contain() & ContainsLayout)
|
| + list->append(cssValuePool().createIdentifierValue(CSSValueLayout));
|
| + if (style.contain() & ContainsPaint)
|
| + list->append(cssValuePool().createIdentifierValue(CSSValuePaint));
|
| + ASSERT(list->length());
|
| + return list.release();
|
| + }
|
| case CSSPropertyVariable:
|
| // TODO(leviw): We should have a way to retrive variables here.
|
| ASSERT_NOT_REACHED();
|
|
|