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

Unified Diff: Source/core/paint/SVGRootPainter.cpp

Issue 952273006: Make the constructor of a LayoutRect from an IntRect explicit. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/core/paint/LayerPainter.cpp ('k') | Source/core/paint/ScrollableAreaPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/SVGRootPainter.cpp
diff --git a/Source/core/paint/SVGRootPainter.cpp b/Source/core/paint/SVGRootPainter.cpp
index 5e5f5bbd3d1cfe0cc11e9f08228164d65020e227..444c5bce2650082d91c31578ee6cfc1b84d82e56 100644
--- a/Source/core/paint/SVGRootPainter.cpp
+++ b/Source/core/paint/SVGRootPainter.cpp
@@ -46,7 +46,7 @@ void SVGRootPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paintO
// Apply initial viewport clip.
OwnPtr<ClipRecorder> clipRecorder;
if (m_renderSVGRoot.shouldApplyViewportClip())
- clipRecorder = adoptPtr(new ClipRecorder(m_renderSVGRoot.displayItemClient(), paintInfoBeforeFiltering.context, paintInfoBeforeFiltering.displayItemTypeForClipping(), pixelSnappedIntRect(m_renderSVGRoot.overflowClipRect(paintOffset))));
+ clipRecorder = adoptPtr(new ClipRecorder(m_renderSVGRoot.displayItemClient(), paintInfoBeforeFiltering.context, paintInfoBeforeFiltering.displayItemTypeForClipping(), LayoutRect(pixelSnappedIntRect(m_renderSVGRoot.overflowClipRect(paintOffset)))));
// Convert from container offsets (html renderers) to a relative transform (svg renderers).
// Transform from our paint container's coordinate system to our local coords.
« no previous file with comments | « Source/core/paint/LayerPainter.cpp ('k') | Source/core/paint/ScrollableAreaPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698