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

Unified Diff: Source/core/rendering/svg/RenderSVGResourceFilter.cpp

Issue 802833003: Remove the SVG paint culling optimization (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix test for the moon lander. Created 6 years 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/rendering/svg/RenderSVGResourceFilter.h ('k') | Source/core/rendering/svg/SVGRenderSupport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/RenderSVGResourceFilter.cpp
diff --git a/Source/core/rendering/svg/RenderSVGResourceFilter.cpp b/Source/core/rendering/svg/RenderSVGResourceFilter.cpp
index 446ba677e4aba1a67bbd140ddc55b372a4620d81..8dc0e8024fa7f3b8d3c83951f9de28e15797afef 100644
--- a/Source/core/rendering/svg/RenderSVGResourceFilter.cpp
+++ b/Source/core/rendering/svg/RenderSVGResourceFilter.cpp
@@ -194,13 +194,11 @@ bool RenderSVGResourceFilter::prepareEffect(RenderObject* object, GraphicsContex
if (filterData->boundaries.isEmpty())
return false;
- filterData->drawingRegion = object->strokeBoundingBox();
- filterData->drawingRegion.intersect(filterData->boundaries);
- IntRect intDrawingRegion = enclosingIntRect(filterData->drawingRegion);
-
// Create the SVGFilter object.
+ FloatRect drawingRegion = object->strokeBoundingBox();
+ drawingRegion.intersect(filterData->boundaries);
bool primitiveBoundingBoxMode = filterElement->primitiveUnits()->currentValue()->enumValue() == SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX;
- filterData->filter = SVGFilter::create(intDrawingRegion, targetBoundingBox, filterData->boundaries, primitiveBoundingBoxMode);
+ filterData->filter = SVGFilter::create(enclosingIntRect(drawingRegion), targetBoundingBox, filterData->boundaries, primitiveBoundingBoxMode);
// Create all relevant filter primitives.
filterData->builder = buildPrimitives(filterData->filter.get());
@@ -283,10 +281,4 @@ void RenderSVGResourceFilter::primitiveAttributeChanged(RenderObject* object, co
markAllClientLayersForInvalidation();
}
-FloatRect RenderSVGResourceFilter::drawingRegion(RenderObject* object) const
-{
- FilterData* filterData = m_filter.get(object);
- return filterData ? filterData->drawingRegion : FloatRect();
-}
-
}
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceFilter.h ('k') | Source/core/rendering/svg/SVGRenderSupport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698