diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/svg/SVGFEDiffuseLightingElement.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/svg/SVGFEDiffuseLightingElement.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/chromium/third_party/WebKit/Source/core/svg/SVGFEDiffuseLightingElement.h b/chromium/third_party/WebKit/Source/core/svg/SVGFEDiffuseLightingElement.h index efd8e3fedbe..c3cbbc4b035 100644 --- a/chromium/third_party/WebKit/Source/core/svg/SVGFEDiffuseLightingElement.h +++ b/chromium/third_party/WebKit/Source/core/svg/SVGFEDiffuseLightingElement.h @@ -33,11 +33,11 @@ class SVGColor; class SVGFEDiffuseLightingElement FINAL : public SVGFilterPrimitiveStandardAttributes { public: - static PassRefPtr<SVGFEDiffuseLightingElement> create(const QualifiedName&, Document&); + static PassRefPtr<SVGFEDiffuseLightingElement> create(Document&); void lightElementAttributeChanged(const SVGFELightElement*, const QualifiedName&); private: - SVGFEDiffuseLightingElement(const QualifiedName&, Document&); + explicit SVGFEDiffuseLightingElement(Document&); bool isSupportedAttribute(const QualifiedName&); virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; @@ -57,11 +57,7 @@ private: END_DECLARE_ANIMATED_PROPERTIES }; -inline SVGFEDiffuseLightingElement* toSVGFEDiffuseLightingElement(Node* node) -{ - ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::feDiffuseLightingTag)); - return static_cast<SVGFEDiffuseLightingElement*>(node); -} +DEFINE_NODE_TYPE_CASTS(SVGFEDiffuseLightingElement, hasTagName(SVGNames::feDiffuseLightingTag)); } // namespace WebCore |