OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 SVGAnimatedLength* width() const { return m_width.get(); } | 48 SVGAnimatedLength* width() const { return m_width.get(); } |
49 SVGAnimatedLength* height() const { return m_height.get(); } | 49 SVGAnimatedLength* height() const { return m_height.get(); } |
50 SVGAnimatedString* result() const { return m_result.get(); } | 50 SVGAnimatedString* result() const { return m_result.get(); } |
51 | 51 |
52 protected: | 52 protected: |
53 SVGFilterPrimitiveStandardAttributes(const QualifiedName&, Document&); | 53 SVGFilterPrimitiveStandardAttributes(const QualifiedName&, Document&); |
54 | 54 |
55 bool isSupportedAttribute(const QualifiedName&); | 55 bool isSupportedAttribute(const QualifiedName&); |
56 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 56 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
57 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 57 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
58 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; | 58 virtual void childrenChanged(const ChildrenChange&) OVERRIDE; |
59 | 59 |
60 inline void invalidate() | 60 inline void invalidate() |
61 { | 61 { |
62 if (RenderObject* primitiveRenderer = renderer()) | 62 if (RenderObject* primitiveRenderer = renderer()) |
63 RenderSVGResource::markForLayoutAndParentResourceInvalidation(primit
iveRenderer); | 63 RenderSVGResource::markForLayoutAndParentResourceInvalidation(primit
iveRenderer); |
64 } | 64 } |
65 | 65 |
66 void primitiveAttributeChanged(const QualifiedName&); | 66 void primitiveAttributeChanged(const QualifiedName&); |
67 | 67 |
68 private: | 68 private: |
69 virtual bool isFilterEffect() const OVERRIDE FINAL { return true; } | 69 virtual bool isFilterEffect() const OVERRIDE FINAL { return true; } |
70 | 70 |
71 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE FINAL; | 71 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE FINAL; |
72 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE FINAL; | 72 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE FINAL; |
73 | 73 |
74 RefPtr<SVGAnimatedLength> m_x; | 74 RefPtr<SVGAnimatedLength> m_x; |
75 RefPtr<SVGAnimatedLength> m_y; | 75 RefPtr<SVGAnimatedLength> m_y; |
76 RefPtr<SVGAnimatedLength> m_width; | 76 RefPtr<SVGAnimatedLength> m_width; |
77 RefPtr<SVGAnimatedLength> m_height; | 77 RefPtr<SVGAnimatedLength> m_height; |
78 RefPtr<SVGAnimatedString> m_result; | 78 RefPtr<SVGAnimatedString> m_result; |
79 }; | 79 }; |
80 | 80 |
81 void invalidateFilterPrimitiveParent(SVGElement*); | 81 void invalidateFilterPrimitiveParent(SVGElement*); |
82 | 82 |
83 } // namespace WebCore | 83 } // namespace WebCore |
84 | 84 |
85 #endif | 85 #endif |
OLD | NEW |