Remove redundant AffineTransform in RenderSVGShape::fillAndStrokeShape()
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Dec 2012 00:47:19 +0000 (00:47 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Dec 2012 00:47:19 +0000 (00:47 +0000)
https://bugs.webkit.org/show_bug.cgi?id=104736

Reviewed by Dean Jackson.

RenderSVGShape::fillAndStrokeShape() allocated a AffineTransform on
the stack which was shadowed by another one in narrower scope. It
can be removed.

* rendering/svg/RenderSVGShape.cpp:
(WebCore::RenderSVGShape::fillAndStrokeShape):

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

Source/WebCore/ChangeLog
Source/WebCore/rendering/svg/RenderSVGShape.cpp

index 86ce28c..fb46a50 100644 (file)
@@ -1,3 +1,17 @@
+2012-12-11  Simon Fraser  <simon.fraser@apple.com>
+
+        Remove redundant AffineTransform in RenderSVGShape::fillAndStrokeShape()
+        https://bugs.webkit.org/show_bug.cgi?id=104736
+
+        Reviewed by Dean Jackson.
+
+        RenderSVGShape::fillAndStrokeShape() allocated a AffineTransform on
+        the stack which was shadowed by another one in narrower scope. It
+        can be removed.
+
+        * rendering/svg/RenderSVGShape.cpp:
+        (WebCore::RenderSVGShape::fillAndStrokeShape):
+
 2012-12-11  Seokju Kwon  <seokju.kwon@gmail.com>
 
         [EFL] Remove unused headers
index 7e329b2..dda972e 100644 (file)
@@ -258,7 +258,6 @@ void RenderSVGShape::fillAndStrokeShape(GraphicsContext* context)
         return;
 
     GraphicsContextStateSaver stateSaver(*context, false);
-    AffineTransform nonScalingTransform;
 
     if (hasNonScalingStroke()) {
         AffineTransform nonScalingTransform = nonScalingStrokeTransform();