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

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

Issue 1158583003: Reduce how often LayoutSVGShape::updateShapeFromElement is called (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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/SVGGeometryElement.cpp
diff --git a/Source/core/svg/SVGGeometryElement.cpp b/Source/core/svg/SVGGeometryElement.cpp
index 6fd2971a701dbb975fb4f2661747a5aeec39b40c..b9f6fde00546ad6b69f596229966d3ae3d09d5b0 100644
--- a/Source/core/svg/SVGGeometryElement.cpp
+++ b/Source/core/svg/SVGGeometryElement.cpp
@@ -45,6 +45,20 @@ SVGGeometryElement::SVGGeometryElement(const QualifiedName& tagName, Document& d
{
}
+void SVGGeometryElement::svgAttributeChanged(const QualifiedName& attrName)
+{
+ if (attrName == SVGNames::vector_effectAttr) {
fs 2015/06/01 09:09:19 Isn't this a presentation attribute?
+ if (LayoutObject* object = layoutObject()) {
+ SVGElement::InvalidationGuard invalidationGuard(this);
+ toLayoutSVGShape(layoutObject())->setNeedsShapeUpdate();
+ markForLayoutAndParentResourceInvalidation(object);
+ }
+ return;
+ }
+
+ SVGGraphicsElement::svgAttributeChanged(attrName);
+}
+
bool SVGGeometryElement::isPointInFill(PassRefPtrWillBeRawPtr<SVGPointTearOff> point) const
{
document().updateLayoutIgnorePendingStylesheets();
« Source/core/layout/svg/LayoutSVGShape.cpp ('K') | « Source/core/svg/SVGGeometryElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698