Index: Source/core/css/resolver/StyleAdjuster.cpp |
diff --git a/Source/core/css/resolver/StyleAdjuster.cpp b/Source/core/css/resolver/StyleAdjuster.cpp |
index af6781c43bd74a6c12c5b9dd969821141eac7187..d83982e5538169dae5244286d250138da522756d 100644 |
--- a/Source/core/css/resolver/StyleAdjuster.cpp |
+++ b/Source/core/css/resolver/StyleAdjuster.cpp |
@@ -419,6 +419,14 @@ void StyleAdjuster::adjustOverflow(RenderStyle* style, Element* element) |
style->setOverflowX(OHIDDEN); |
else if (style->overflowX() == OAUTO) |
style->setOverflowX(OVISIBLE); |
+ |
+ if (style->overflowX() == style->overflowY()) |
+ return; |
+ |
+ if (style->overflowX() != OVISIBLE) |
+ style->setOverflowX(OVISIBLE); |
+ else |
+ style->setOverflowY(OVISIBLE); |
} |
} |