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

Unified Diff: third_party/WebKit/Source/core/paint/SVGFilterPainter.cpp

Issue 2349183002: Turn FilterEffectBuilder into a stack-allocated helper (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/paint/SVGFilterPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/SVGFilterPainter.cpp b/third_party/WebKit/Source/core/paint/SVGFilterPainter.cpp
index 49c035b3a1e6abc0f5b03271856be7154a227cff..74377c75563939cc2540135188a0b270a1574deb 100644
--- a/third_party/WebKit/Source/core/paint/SVGFilterPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/SVGFilterPainter.cpp
@@ -87,9 +87,9 @@ GraphicsContext* SVGFilterPainter::prepareEffect(const LayoutObject& object, SVG
return nullptr;
}
- const FloatRect referenceBox = object.objectBoundingBox();
SVGFilterGraphNodeMap* nodeMap = SVGFilterGraphNodeMap::create();
- Filter* filter = FilterEffectBuilder::buildReferenceFilter(toSVGFilterElement(*m_filter.element()), referenceBox, nullptr, nullptr, nullptr, 1, nodeMap);
+ FilterEffectBuilder builder(nullptr, object.objectBoundingBox(), 1);
+ Filter* filter = builder.buildReferenceFilter(toSVGFilterElement(*m_filter.element()), nullptr, nodeMap);
if (!filter || !filter->lastEffect())
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698