diff options
author | Steve Block <steveblock@google.com> | 2011-05-18 13:36:51 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-05-24 15:38:28 +0100 |
commit | 2fc2651226baac27029e38c9d6ef883fa32084db (patch) | |
tree | e396d4bf89dcce6ed02071be66212495b1df1dec /Source/WebCore/svg/SVGFilterPrimitiveStandardAttributes.h | |
parent | b3725cedeb43722b3b175aaeff70552e562d2c94 (diff) | |
download | external_webkit-2fc2651226baac27029e38c9d6ef883fa32084db.zip external_webkit-2fc2651226baac27029e38c9d6ef883fa32084db.tar.gz external_webkit-2fc2651226baac27029e38c9d6ef883fa32084db.tar.bz2 |
Merge WebKit at r78450: Initial merge by git.
Change-Id: I6d3e5f1f868ec266a0aafdef66182ddc3f265dc1
Diffstat (limited to 'Source/WebCore/svg/SVGFilterPrimitiveStandardAttributes.h')
-rw-r--r-- | Source/WebCore/svg/SVGFilterPrimitiveStandardAttributes.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Source/WebCore/svg/SVGFilterPrimitiveStandardAttributes.h b/Source/WebCore/svg/SVGFilterPrimitiveStandardAttributes.h index 34e19ea..526592a 100644 --- a/Source/WebCore/svg/SVGFilterPrimitiveStandardAttributes.h +++ b/Source/WebCore/svg/SVGFilterPrimitiveStandardAttributes.h @@ -22,7 +22,8 @@ #define SVGFilterPrimitiveStandardAttributes_h #if ENABLE(SVG) && ENABLE(FILTERS) -#include "RenderSVGResource.h" +#include "RenderSVGResourceFilter.h" +#include "RenderSVGResourceFilterPrimitive.h" #include "SVGAnimatedLength.h" #include "SVGAnimatedString.h" #include "SVGStyledElement.h" @@ -41,6 +42,8 @@ public: void setStandardAttributes(bool, FilterEffect*) const; virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter* filter) = 0; + // Returns true, if the new value is different from the old one. + virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&); protected: SVGFilterPrimitiveStandardAttributes(const QualifiedName&, Document*); @@ -48,15 +51,21 @@ protected: virtual void parseMappedAttribute(Attribute*); virtual void svgAttributeChanged(const QualifiedName&); virtual void synchronizeProperty(const QualifiedName&); + void fillPassedAttributeToPropertyTypeMap(AttributeToPropertyTypeMap&); virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0); -protected: inline void invalidate() { if (RenderObject* primitiveRenderer = renderer()) RenderSVGResource::markForLayoutAndParentResourceInvalidation(primitiveRenderer); } + inline void primitiveAttributeChanged(const QualifiedName& attribute) + { + if (RenderObject* primitiveRenderer = renderer()) + static_cast<RenderSVGResourceFilterPrimitive*>(primitiveRenderer)->primitiveAttributeChanged(attribute); + } + private: virtual bool isFilterEffect() const { return true; } |