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

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

Issue 1899243002: Get rid of SVGLayoutSupport::filtersForceContainerLayout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 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)

Powered by Google App Engine
This is Rietveld 408576698