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 6227c6d6293da1a0824d170335fb272c5a04f007..ebd40192b3f71849be1e8ae3cafa0d1d67c0e4d0 100644 |
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
@@ -2666,8 +2666,9 @@ const CSSValue* ComputedStyleCSSValueMapping::get( |
case CSSPropertyOutlineWidth: |
return zoomAdjustedPixelValue(style.outlineWidth(), style); |
case CSSPropertyOverflow: |
- return CSSIdentifierValue::create( |
- max(style.overflowX(), style.overflowY())); |
+ if (style.overflowX() == style.overflowY()) |
+ return CSSIdentifierValue::create(style.overflowX()); |
+ return nullptr; |
case CSSPropertyOverflowAnchor: |
return CSSIdentifierValue::create(style.overflowAnchor()); |
case CSSPropertyOverflowWrap: |