Reviewed by Adam Roben.
authorweinig <weinig@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Jun 2007 21:27:08 +0000 (21:27 +0000)
committerweinig <weinig@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Jun 2007 21:27:08 +0000 (21:27 +0000)
        Fix the buildbot.

        * rendering/RenderSVGContainer.cpp:
        (WebCore::RenderSVGContainer::layout):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@21969 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/rendering/RenderSVGContainer.cpp

index 229cbbe..1c88466 100644 (file)
@@ -1,3 +1,12 @@
+2007-06-04  Sam Weinig  <sam@webkit.org>
+
+        Reviewed by Adam Roben.
+
+        Fix the buildbot.
+
+        * rendering/RenderSVGContainer.cpp:
+        (WebCore::RenderSVGContainer::layout):
+
 2007-06-04  Justin Garcia  <justin.garcia@apple.com>
 
         Reviewed by Kimon Tsinteris.
index 8a462b7..a014248 100644 (file)
@@ -119,8 +119,8 @@ void RenderSVGContainer::layout()
     m_absoluteBounds = absoluteClippedOverflowRect();
     if (!parent()->isSVGContainer()) {
         SVGSVGElement* svg = static_cast<SVGSVGElement*>(element());
-        m_width = float(m_width) * svg->currentScale();
-        m_height = float(m_height) * svg->currentScale();
+        m_width = static_cast<int>(static_cast<float>(m_width) * svg->currentScale());
+        m_height = static_cast<int>(static_cast<float>(m_height) * svg->currentScale());
     }
 
     if (selfNeedsLayout() && checkForRepaint)