Index: Source/core/frame/FrameView.cpp |
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp |
index 933b6334b49e76debebafeb36a08a2413c478a94..44e2b346d592126fc6ff2e23e22809a379a9e2df 100644 |
--- a/Source/core/frame/FrameView.cpp |
+++ b/Source/core/frame/FrameView.cpp |
@@ -533,6 +533,10 @@ void FrameView::applyOverflowToViewportAndSetRenderer(RenderObject* o, Scrollbar |
EOverflow overflowY = o->style()->overflowY(); |
if (o->isSVGRoot()) { |
+ // Don't allow overflow to affect <img> and css backgrounds |
+ if (toRenderSVGRoot(o)->isEmbeddedThroughSVGImage()) |
+ return; |
+ |
// FIXME: evaluate if we can allow overflow for these cases too. |
// Overflow is always hidden when stand-alone SVG documents are embedded. |
if (toRenderSVGRoot(o)->isEmbeddedThroughFrameContainingSVGDocument()) { |