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

Unified Diff: third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp

Issue 2343673003: SVG root viewport clip in paint property tree (Closed)
Patch Set: - Created 4 years, 3 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: third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp b/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp
index 2274567e7652b12f0a10ee97c7e662ef046ff8ea..1a47e76a2a0d59218b36355ee72bd6245a6dd73e 100644
--- a/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp
@@ -128,7 +128,7 @@ bool SVGLayoutSupport::mapToVisualRectInAncestorSpace(const LayoutObject& object
// Apply initial viewport clip.
if (svgRoot.shouldApplyViewportClip()) {
- LayoutRect clipRect(svgRoot.pixelSnappedBorderBoxRect());
+ LayoutRect clipRect(svgRoot.overflowClipRect(LayoutPoint()));
if (visualRectFlags & EdgeInclusive) {
if (!resultRect.inclusiveIntersect(clipRect))
return false;
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGRootTest.cpp ('k') | third_party/WebKit/Source/core/paint/BoxClipper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698