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

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: Rebase 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
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css/different-overflow-x-and-y.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5394b40317a46dc87b92dbe6c144480c61213132..266efb46001f63af3c6cf059d6e68a009948cdb4 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -2682,8 +2682,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:
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css/different-overflow-x-and-y.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698