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

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: Fixed Linux compilation (hopefuly Windows too), addressing some reviewer's suggestions. 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 4693d25352c7722d060bf377bb527de2e7ae43e9..28306673babe8592d2d0d4152a6015cd7fd35a9d 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