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

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

Issue 2279823002: Use LayoutSVGResourceClipper::resourceBoundingBox() in ClipPathClipper (Closed)
Patch Set: Rebase 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/SVGLayoutTreeAsText.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp b/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp
index e63300200822c780f5e2a3d558abc1d615746e2c..c3cf3bd0595e2a4006d91017c895e799a78d9612 100644
--- a/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp
@@ -639,7 +639,6 @@ void writeResources(TextStream& ts, const LayoutObject& object, int indent)
// FIXME: We want to use SVGResourcesCache to determine which resources are present, instead of quering the resource <-> id cache.
// For now leave the DRT output as is, but later on we should change this so cycles are properly ignored in the DRT output.
- LayoutObject& layoutObject = const_cast<LayoutObject&>(object);
if (!svgStyle.maskerResource().isEmpty()) {
if (LayoutSVGResourceMasker* masker = getLayoutSVGResourceById<LayoutSVGResourceMasker>(object.document(), svgStyle.maskerResource())) {
writeIndent(ts, indent);
@@ -647,7 +646,7 @@ void writeResources(TextStream& ts, const LayoutObject& object, int indent)
writeNameAndQuotedValue(ts, "masker", svgStyle.maskerResource());
ts << " ";
writeStandardPrefix(ts, *masker, 0);
- ts << " " << masker->resourceBoundingBox(&layoutObject) << "\n";
+ ts << " " << masker->resourceBoundingBox(&object) << "\n";
}
}
if (!svgStyle.clipperResource().isEmpty()) {
@@ -657,7 +656,7 @@ void writeResources(TextStream& ts, const LayoutObject& object, int indent)
writeNameAndQuotedValue(ts, "clipPath", svgStyle.clipperResource());
ts << " ";
writeStandardPrefix(ts, *clipper, 0);
- ts << " " << clipper->resourceBoundingBox(&layoutObject) << "\n";
+ ts << " " << clipper->resourceBoundingBox(object.objectBoundingBox()) << "\n";
}
}
if (style.hasFilter()) {
@@ -673,7 +672,7 @@ void writeResources(TextStream& ts, const LayoutObject& object, int indent)
writeNameAndQuotedValue(ts, "filter", id);
ts << " ";
writeStandardPrefix(ts, *filter, 0);
- ts << " " << filter->resourceBoundingBox(&layoutObject) << "\n";
+ ts << " " << filter->resourceBoundingBox(&object) << "\n";
}
}
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp ('k') | third_party/WebKit/Source/core/paint/ClipPathClipper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698