Title: [112284] trunk/Source/WebCore
Revision
112284
Author
[email protected]
Date
2012-03-27 11:03:32 -0700 (Tue, 27 Mar 2012)

Log Message

Correct SVG paint functions that are still using IntPoints
https://bugs.webkit.org/show_bug.cgi?id=82343

Reviewed by Eric Seidel.

Two small corrections to SVG paint functions that should use LayoutPoint instead
of IntPoint.

No new tests. No change in behavior.

* rendering/svg/RenderSVGShape.cpp:
(WebCore::RenderSVGShape::paint):
* rendering/svg/RenderSVGText.cpp:
(WebCore::RenderSVGText::paint):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (112283 => 112284)


--- trunk/Source/WebCore/ChangeLog	2012-03-27 18:00:50 UTC (rev 112283)
+++ trunk/Source/WebCore/ChangeLog	2012-03-27 18:03:32 UTC (rev 112284)
@@ -1,3 +1,20 @@
+2012-03-27  Levi Weintraub  <[email protected]>
+
+        Correct SVG paint functions that are still using IntPoints
+        https://bugs.webkit.org/show_bug.cgi?id=82343
+
+        Reviewed by Eric Seidel.
+
+        Two small corrections to SVG paint functions that should use LayoutPoint instead
+        of IntPoint.
+
+        No new tests. No change in behavior.
+
+        * rendering/svg/RenderSVGShape.cpp:
+        (WebCore::RenderSVGShape::paint):
+        * rendering/svg/RenderSVGText.cpp:
+        (WebCore::RenderSVGText::paint):
+
 2012-03-27  Zalan Bujtas  <[email protected]>
 
         Frame flattening: childframe in FrameView::layout() needs protector.

Modified: trunk/Source/WebCore/rendering/svg/RenderSVGShape.cpp (112283 => 112284)


--- trunk/Source/WebCore/rendering/svg/RenderSVGShape.cpp	2012-03-27 18:00:50 UTC (rev 112283)
+++ trunk/Source/WebCore/rendering/svg/RenderSVGShape.cpp	2012-03-27 18:03:32 UTC (rev 112284)
@@ -318,7 +318,7 @@
 
 }
 
-void RenderSVGShape::paint(PaintInfo& paintInfo, const IntPoint&)
+void RenderSVGShape::paint(PaintInfo& paintInfo, const LayoutPoint&)
 {
     if (paintInfo.context->paintingDisabled() || style()->visibility() == HIDDEN || isEmpty())
         return;

Modified: trunk/Source/WebCore/rendering/svg/RenderSVGText.cpp (112283 => 112284)


--- trunk/Source/WebCore/rendering/svg/RenderSVGText.cpp	2012-03-27 18:00:50 UTC (rev 112283)
+++ trunk/Source/WebCore/rendering/svg/RenderSVGText.cpp	2012-03-27 18:03:32 UTC (rev 112284)
@@ -333,7 +333,7 @@
     PaintInfo blockInfo(paintInfo);
     GraphicsContextStateSaver stateSaver(*blockInfo.context);
     blockInfo.applyTransform(localToParentTransform());
-    RenderBlock::paint(blockInfo, IntPoint());
+    RenderBlock::paint(blockInfo, LayoutPoint());
 }
 
 FloatRect RenderSVGText::strokeBoundingBox() const
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to