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

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

Issue 669153002: Relocate markForLayoutAndParentResourceInvalidation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Drop boundsChanged. Created 6 years, 2 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 | « Source/core/svg/SVGFilterPrimitiveStandardAttributes.h ('k') | Source/core/svg/SVGForeignObjectElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFilterPrimitiveStandardAttributes.cpp
diff --git a/Source/core/svg/SVGFilterPrimitiveStandardAttributes.cpp b/Source/core/svg/SVGFilterPrimitiveStandardAttributes.cpp
index c2592216642c905212103a904b1f0cda9b43f10f..61482b158c62a765113f99910187643cb58dd711 100644
--- a/Source/core/svg/SVGFilterPrimitiveStandardAttributes.cpp
+++ b/Source/core/svg/SVGFilterPrimitiveStandardAttributes.cpp
@@ -20,13 +20,13 @@
*/
#include "config.h"
-
#include "core/svg/SVGFilterPrimitiveStandardAttributes.h"
#include "core/SVGNames.h"
-#include "platform/graphics/filters/FilterEffect.h"
+#include "core/rendering/svg/RenderSVGResourceContainer.h"
#include "core/rendering/svg/RenderSVGResourceFilterPrimitive.h"
#include "core/svg/SVGLength.h"
+#include "platform/graphics/filters/FilterEffect.h"
namespace blink {
@@ -126,6 +126,12 @@ bool SVGFilterPrimitiveStandardAttributes::rendererIsNeeded(const RenderStyle& s
return false;
}
+void SVGFilterPrimitiveStandardAttributes::invalidate()
+{
+ if (RenderObject* primitiveRenderer = renderer())
+ markForLayoutAndParentResourceInvalidation(primitiveRenderer);
+}
+
void SVGFilterPrimitiveStandardAttributes::primitiveAttributeChanged(const QualifiedName& attribute)
{
if (RenderObject* primitiveRenderer = renderer())
@@ -146,7 +152,7 @@ void invalidateFilterPrimitiveParent(SVGElement* element)
if (!renderer || !renderer->isSVGResourceFilterPrimitive())
return;
- RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer, false);
+ RenderSVGResourceContainer::markForLayoutAndParentResourceInvalidation(renderer, false);
}
}
« no previous file with comments | « Source/core/svg/SVGFilterPrimitiveStandardAttributes.h ('k') | Source/core/svg/SVGForeignObjectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698