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

Unified Diff: Source/core/svg/SVGPolyElement.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/SVGPolyElement.cpp
diff --git a/Source/core/svg/SVGPolyElement.cpp b/Source/core/svg/SVGPolyElement.cpp
index daed4b76b93495a0a0609dd77b361d063127a49f..e592d4e54edd1f3aa6895b92b9ad6b18b05080a8 100644
--- a/Source/core/svg/SVGPolyElement.cpp
+++ b/Source/core/svg/SVGPolyElement.cpp
@@ -42,19 +42,19 @@ DEFINE_TRACE(SVGPolyElement)
void SVGPolyElement::svgAttributeChanged(const QualifiedName& attrName)
{
- if (attrName != SVGNames::pointsAttr) {
- SVGGeometryElement::svgAttributeChanged(attrName);
- return;
- }
+ if (attrName == SVGNames::pointsAttr) {
+ SVGElement::InvalidationGuard invalidationGuard(this);
- SVGElement::InvalidationGuard invalidationGuard(this);
+ LayoutSVGShape* renderer = toLayoutSVGShape(this->layoutObject());
+ if (!renderer)
+ return;
- LayoutSVGShape* renderer = toLayoutSVGShape(this->layoutObject());
- if (!renderer)
+ renderer->setNeedsShapeUpdate();
+ markForLayoutAndParentResourceInvalidation(renderer);
return;
+ }
- renderer->setNeedsShapeUpdate();
- markForLayoutAndParentResourceInvalidation(renderer);
+ SVGGeometryElement::svgAttributeChanged(attrName);
}
}

Powered by Google App Engine
This is Rietveld 408576698