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

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: Address comments 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 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:

Powered by Google App Engine
This is Rietveld 408576698