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

Unified Diff: Source/core/svg/SVGClipPathElement.cpp

Issue 1074813002: Remove isSupportedAttribute in svg (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: invalidation guard tweaks Created 5 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: Source/core/svg/SVGClipPathElement.cpp
diff --git a/Source/core/svg/SVGClipPathElement.cpp b/Source/core/svg/SVGClipPathElement.cpp
index b9b8482dc1570382517200d99e9ea06c1308c364..66c606d2dc8f50f49e05dc0c4650d468096cd1c0 100644
--- a/Source/core/svg/SVGClipPathElement.cpp
+++ b/Source/core/svg/SVGClipPathElement.cpp
@@ -44,16 +44,16 @@ DEFINE_NODE_FACTORY(SVGClipPathElement)
void SVGClipPathElement::svgAttributeChanged(const QualifiedName& attrName)
{
- if (attrName != SVGNames::clipPathUnitsAttr) {
- SVGGraphicsElement::svgAttributeChanged(attrName);
+ if (attrName == SVGNames::clipPathUnitsAttr) {
+ SVGElement::InvalidationGuard invalidationGuard(this);
+
+ LayoutSVGResourceContainer* renderer = toLayoutSVGResourceContainer(this->layoutObject());
+ if (renderer)
+ renderer->invalidateCacheAndMarkForLayout();
return;
}
- SVGElement::InvalidationGuard invalidationGuard(this);
-
- LayoutSVGResourceContainer* renderer = toLayoutSVGResourceContainer(this->layoutObject());
- if (renderer)
- renderer->invalidateCacheAndMarkForLayout();
+ SVGGraphicsElement::svgAttributeChanged(attrName);
}
void SVGClipPathElement::childrenChanged(const ChildrenChange& change)

Powered by Google App Engine
This is Rietveld 408576698