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

Unified Diff: Source/core/css/resolver/StyleAdjuster.cpp

Issue 220853002: SVG does not respect overflow:visible. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 8 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: Source/core/css/resolver/StyleAdjuster.cpp
diff --git a/Source/core/css/resolver/StyleAdjuster.cpp b/Source/core/css/resolver/StyleAdjuster.cpp
index d83982e5538169dae5244286d250138da522756d..c364b0db535fa8993c5a3b4f7ffdb48e5f9f9f44 100644
--- a/Source/core/css/resolver/StyleAdjuster.cpp
+++ b/Source/core/css/resolver/StyleAdjuster.cpp
@@ -407,27 +407,6 @@ void StyleAdjuster::adjustOverflow(RenderStyle* style, Element* element)
style->setOverflowX(OVISIBLE);
style->setOverflowY(OVISIBLE);
}
-
- // Spec: http://www.w3.org/TR/SVG/masking.html#OverflowProperty
- if (element && element->isSVGElement()) {
- if (style->overflowY() == OSCROLL)
- style->setOverflowY(OHIDDEN);
- else if (style->overflowY() == OAUTO)
- style->setOverflowY(OVISIBLE);
-
- if (style->overflowX() == OSCROLL)
- 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);
- }
}
void StyleAdjuster::adjustStyleForDisplay(RenderStyle* style, RenderStyle* parentStyle)
« no previous file with comments | « LayoutTests/svg/overflow/overflow-y-hidden-on-outermost-svg-element-expected.svg ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698