[Webkit-unassigned] [Bug 21910] REGRESSION (r37146): SVG-as-image is not rendered

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 7 14:39:21 PST 2008


https://bugs.webkit.org/show_bug.cgi?id=21910





------- Comment #4 from simon.fraser at apple.com  2008-11-07 14:39 PDT -------
Maybe fix:

diff --git a/WebCore/svg/graphics/SVGImage.cpp
b/WebCore/svg/graphics/SVGImage.cpp
index 4427277..33a6d56 100644
--- a/WebCore/svg/graphics/SVGImage.cpp
+++ b/WebCore/svg/graphics/SVGImage.cpp
@@ -72,6 +72,10 @@ void SVGImage::setContainerSize(const IntSize&
containerSize)

     if (!m_frame || !m_frame->document())
         return;
+    
+    if (m_frame->view())
+        m_frame->view()->resize(containerSize);
+    
     SVGSVGElement* rootElement =
static_cast<SVGDocument*>(m_frame->document())->rootElement();
     if (!rootElement)
         return;

However, LayoutTests/fast/backgrounds/svg-as-background-5.html still renders
all red until you cause a repaint to happen. The other tests work.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list