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

Unified Diff: Source/core/layout/svg/LayoutSVGRoot.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
Index: Source/core/layout/svg/LayoutSVGRoot.cpp
diff --git a/Source/core/layout/svg/LayoutSVGRoot.cpp b/Source/core/layout/svg/LayoutSVGRoot.cpp
index 54cc730f81d9a0a1ce5e682124c5b32db5b9a15d..95c126f6d2364f895fdd85f3124b013a6386c68a 100644
--- a/Source/core/layout/svg/LayoutSVGRoot.cpp
+++ b/Source/core/layout/svg/LayoutSVGRoot.cpp
@@ -349,7 +349,7 @@ LayoutRect LayoutSVGRoot::clippedOverflowRectForPaintInvalidation(const LayoutBo
}
// Compute the paint invalidation rect in the parent coordinate space.
- LayoutRect rect = enclosingIntRect(paintInvalidationRect);
+ LayoutRect rect(enclosingIntRect(paintInvalidationRect));
LayoutReplaced::mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, paintInvalidationState);
return rect;
}
@@ -361,7 +361,7 @@ void LayoutSVGRoot::mapRectToPaintInvalidationBacking(const LayoutBoxModelObject
// Apply initial viewport clip
if (shouldApplyViewportClip())
- rect.intersect(pixelSnappedBorderBoxRect());
+ rect.intersect(LayoutRect(pixelSnappedBorderBoxRect()));
LayoutReplaced::mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, paintInvalidationState);
}

Powered by Google App Engine
This is Rietveld 408576698