OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005 Alexander Kellett <lypanov@kde.org> | 2 * Copyright (C) 2005 Alexander Kellett <lypanov@kde.org> |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "core/svg/SVGExternalResourcesRequired.h" | 28 #include "core/svg/SVGExternalResourcesRequired.h" |
29 #include "core/svg/SVGTests.h" | 29 #include "core/svg/SVGTests.h" |
30 #include "core/svg/SVGUnitTypes.h" | 30 #include "core/svg/SVGUnitTypes.h" |
31 | 31 |
32 namespace WebCore { | 32 namespace WebCore { |
33 | 33 |
34 class SVGMaskElement FINAL : public SVGElement, | 34 class SVGMaskElement FINAL : public SVGElement, |
35 public SVGTests, | 35 public SVGTests, |
36 public SVGExternalResourcesRequired { | 36 public SVGExternalResourcesRequired { |
37 public: | 37 public: |
38 static PassRefPtr<SVGMaskElement> create(const QualifiedName&, Document*); | 38 static PassRefPtr<SVGMaskElement> create(const QualifiedName&, Document&); |
39 | 39 |
40 private: | 40 private: |
41 SVGMaskElement(const QualifiedName&, Document*); | 41 SVGMaskElement(const QualifiedName&, Document&); |
42 | 42 |
43 virtual bool isValid() const { return SVGTests::isValid(); } | 43 virtual bool isValid() const { return SVGTests::isValid(); } |
44 virtual bool needsPendingResourceHandling() const { return false; } | 44 virtual bool needsPendingResourceHandling() const { return false; } |
45 | 45 |
46 bool isSupportedAttribute(const QualifiedName&); | 46 bool isSupportedAttribute(const QualifiedName&); |
47 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 47 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
48 virtual void svgAttributeChanged(const QualifiedName&); | 48 virtual void svgAttributeChanged(const QualifiedName&); |
49 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 49 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); |
50 | 50 |
51 virtual RenderObject* createRenderer(RenderStyle*); | 51 virtual RenderObject* createRenderer(RenderStyle*); |
(...skipping 18 matching lines...) Expand all Loading... |
70 | 70 |
71 inline SVGMaskElement* toSVGMaskElement(Node* node) | 71 inline SVGMaskElement* toSVGMaskElement(Node* node) |
72 { | 72 { |
73 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::maskTag
)); | 73 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::maskTag
)); |
74 return static_cast<SVGMaskElement*>(node); | 74 return static_cast<SVGMaskElement*>(node); |
75 } | 75 } |
76 | 76 |
77 } | 77 } |
78 | 78 |
79 #endif | 79 #endif |
OLD | NEW |