| 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 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
| 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "core/SVGNames.h" | 27 #include "core/SVGNames.h" |
| 28 #include "core/svg/SVGAnimatedEnumeration.h" | 28 #include "core/svg/SVGAnimatedEnumeration.h" |
| 29 #include "core/svg/SVGAnimatedLength.h" | 29 #include "core/svg/SVGAnimatedLength.h" |
| 30 #include "core/svg/SVGElement.h" | 30 #include "core/svg/SVGElement.h" |
| 31 #include "core/svg/SVGURIReference.h" | 31 #include "core/svg/SVGURIReference.h" |
| 32 #include "core/svg/SVGUnitTypes.h" | 32 #include "core/svg/SVGUnitTypes.h" |
| 33 #include "platform/heap/Handle.h" | 33 #include "platform/heap/Handle.h" |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 class SVGElementProxySet; | |
| 38 | |
| 39 class CORE_EXPORT SVGFilterElement final : public SVGElement, | 37 class CORE_EXPORT SVGFilterElement final : public SVGElement, |
| 40 public SVGURIReference { | 38 public SVGURIReference { |
| 41 DEFINE_WRAPPERTYPEINFO(); | 39 DEFINE_WRAPPERTYPEINFO(); |
| 42 USING_GARBAGE_COLLECTED_MIXIN(SVGFilterElement); | 40 USING_GARBAGE_COLLECTED_MIXIN(SVGFilterElement); |
| 43 | 41 |
| 44 public: | 42 public: |
| 45 DECLARE_NODE_FACTORY(SVGFilterElement); | 43 DECLARE_NODE_FACTORY(SVGFilterElement); |
| 46 DECLARE_VIRTUAL_TRACE(); | 44 DECLARE_VIRTUAL_TRACE(); |
| 47 | 45 |
| 48 ~SVGFilterElement() override; | 46 ~SVGFilterElement() override; |
| 49 | 47 |
| 50 SVGElementProxySet& elementProxySet(); | |
| 51 | |
| 52 SVGAnimatedLength* x() const { return m_x.get(); } | 48 SVGAnimatedLength* x() const { return m_x.get(); } |
| 53 SVGAnimatedLength* y() const { return m_y.get(); } | 49 SVGAnimatedLength* y() const { return m_y.get(); } |
| 54 SVGAnimatedLength* width() const { return m_width.get(); } | 50 SVGAnimatedLength* width() const { return m_width.get(); } |
| 55 SVGAnimatedLength* height() const { return m_height.get(); } | 51 SVGAnimatedLength* height() const { return m_height.get(); } |
| 56 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* filterUnits() { | 52 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* filterUnits() { |
| 57 return m_filterUnits.get(); | 53 return m_filterUnits.get(); |
| 58 } | 54 } |
| 59 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* primitiveUnits() { | 55 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* primitiveUnits() { |
| 60 return m_primitiveUnits.get(); | 56 return m_primitiveUnits.get(); |
| 61 } | 57 } |
| 62 | 58 |
| 63 private: | 59 private: |
| 64 explicit SVGFilterElement(Document&); | 60 explicit SVGFilterElement(Document&); |
| 65 | 61 |
| 66 bool needsPendingResourceHandling() const override { return false; } | 62 bool needsPendingResourceHandling() const override { return false; } |
| 67 | 63 |
| 68 void svgAttributeChanged(const QualifiedName&) override; | 64 void svgAttributeChanged(const QualifiedName&) override; |
| 69 void childrenChanged(const ChildrenChange&) override; | 65 void childrenChanged(const ChildrenChange&) override; |
| 70 | 66 |
| 71 LayoutObject* createLayoutObject(const ComputedStyle&) override; | 67 LayoutObject* createLayoutObject(const ComputedStyle&) override; |
| 72 | 68 |
| 73 bool selfHasRelativeLengths() const override; | 69 bool selfHasRelativeLengths() const override; |
| 74 | 70 |
| 75 Member<SVGAnimatedLength> m_x; | 71 Member<SVGAnimatedLength> m_x; |
| 76 Member<SVGAnimatedLength> m_y; | 72 Member<SVGAnimatedLength> m_y; |
| 77 Member<SVGAnimatedLength> m_width; | 73 Member<SVGAnimatedLength> m_width; |
| 78 Member<SVGAnimatedLength> m_height; | 74 Member<SVGAnimatedLength> m_height; |
| 79 Member<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>> m_filterUnits; | 75 Member<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>> m_filterUnits; |
| 80 Member<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>> m_primitiveUnits; | 76 Member<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>> m_primitiveUnits; |
| 81 | |
| 82 Member<SVGElementProxySet> m_elementProxySet; | |
| 83 }; | 77 }; |
| 84 | 78 |
| 85 } // namespace blink | 79 } // namespace blink |
| 86 | 80 |
| 87 #endif // SVGFilterElement_h | 81 #endif // SVGFilterElement_h |
| OLD | NEW |