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 646a3f4c2311e295d8193b64d956084229ca0688..a7bdf9680f7f2dac68b94e3285a4ab87e027df77 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp |
@@ -366,18 +366,10 @@ void SVGLayoutSupport::intersectPaintInvalidationRectWithResources(const LayoutO |
paintInvalidationRect.intersect(masker->resourceBoundingBox(layoutObject)); |
} |
-bool SVGLayoutSupport::filtersForceContainerLayout(LayoutObject* object) |
+bool SVGLayoutSupport::hasFilterResource(const LayoutObject& object) |
{ |
- // If any of this container's children need to be laid out, and a filter is applied |
- // to the container, we need to issue paint invalidations the entire container. |
- if (!object->normalChildNeedsLayout()) |
- return false; |
- |
- SVGResources* resources = SVGResourcesCache::cachedResourcesForLayoutObject(object); |
- if (!resources || !resources->filter()) |
- return false; |
- |
- return true; |
+ SVGResources* resources = SVGResourcesCache::cachedResourcesForLayoutObject(&object); |
+ return resources && resources->filter(); |
} |
bool SVGLayoutSupport::pointInClippingArea(const LayoutObject* object, const FloatPoint& point) |