Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1378)

Unified Diff: Source/core/rendering/svg/SVGRenderSupport.cpp

Issue 21430003: Implement interfaces in PaintInfo and make it a class. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@getterPaintInfo01
Patch Set: Second try Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/svg/SVGRenderSupport.cpp
diff --git a/Source/core/rendering/svg/SVGRenderSupport.cpp b/Source/core/rendering/svg/SVGRenderSupport.cpp
index 3c5ad628b90cb5cb59b8e32a6057608d19886fa7..f92dbf26e7182cc29a368cb7d8b634cb233e2f23 100644
--- a/Source/core/rendering/svg/SVGRenderSupport.cpp
+++ b/Source/core/rendering/svg/SVGRenderSupport.cpp
@@ -151,12 +151,12 @@ void SVGRenderSupport::computeContainerBoundingBoxes(const RenderObject* contain
repaintBoundingBox = strokeBoundingBox;
}
-bool SVGRenderSupport::paintInfoIntersectsRepaintRect(const FloatRect& localRepaintRect, const AffineTransform& localTransform, const PaintInfo& paintInfo)
+bool SVGRenderSupport::paintInfoIntersectsRepaintRect(const FloatRect& localRepaintRect, const AffineTransform& localTransform, PaintInfo& paintInfo)
{
if (localTransform.isIdentity())
- return localRepaintRect.intersects(paintInfo.rect);
+ return localRepaintRect.intersects(paintInfo.getRect());
- return localTransform.mapRect(localRepaintRect).intersects(paintInfo.rect);
+ return localTransform.mapRect(localRepaintRect).intersects(paintInfo.getRect());
}
const RenderSVGRoot* SVGRenderSupport::findTreeRootObject(const RenderObject* start)

Powered by Google App Engine
This is Rietveld 408576698