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

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

Issue 2647443004: Add SVGResources helper for resource-bounds invalidation (Closed)
Patch Set: Default was actually true... Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/svg/SVGResources.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
index 6bfb64b4d40e99dad8fb6f6fbf6be7633253c801..6cb6483e8790ad4cdf47b4a5143c0590c5cde502 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
@@ -19,10 +19,6 @@
#include "core/layout/svg/LayoutSVGResourceContainer.h"
-#include "core/SVGElementTypeHelpers.h"
-#include "core/layout/svg/LayoutSVGResourceClipper.h"
-#include "core/layout/svg/LayoutSVGResourceFilter.h"
-#include "core/layout/svg/LayoutSVGResourceMasker.h"
#include "core/layout/svg/SVGResources.h"
#include "core/layout/svg/SVGResourcesCache.h"
#include "core/svg/SVGElementProxy.h"
@@ -249,14 +245,7 @@ static inline void removeFromCacheAndInvalidateDependencies(
ASSERT(object);
if (SVGResources* resources =
SVGResourcesCache::cachedResourcesForLayoutObject(object)) {
- if (LayoutSVGResourceFilter* filter = resources->filter())
- filter->removeClientFromCache(object);
-
- if (LayoutSVGResourceMasker* masker = resources->masker())
- masker->removeClientFromCache(object);
-
- if (LayoutSVGResourceClipper* clipper = resources->clipper())
- clipper->removeClientFromCache(object);
+ resources->removeClientFromCacheAffectingObjectBounds(object);
}
if (!object->node() || !object->node()->isSVGElement())
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/svg/SVGResources.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698