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

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

Issue 2752623002: Return '' for overflow if overflow-x and overflow-y are different. (Closed)
Patch Set: 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/ComputedStyleCSSValueMapping.cpp
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
index 4227d239d689f8adb6c03b243fbfda8b7adaad54..a9fa09f1e12c5117ac890da8c10daeb517f0eb73 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -2654,8 +2654,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:

Powered by Google App Engine
This is Rietveld 408576698