| 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 16 matching lines...) Expand all Loading... |
| 27 #include "core/svg/SVGElement.h" | 27 #include "core/svg/SVGElement.h" |
| 28 #include "core/svg/SVGTests.h" | 28 #include "core/svg/SVGTests.h" |
| 29 #include "core/svg/SVGUnitTypes.h" | 29 #include "core/svg/SVGUnitTypes.h" |
| 30 #include "platform/heap/Handle.h" | 30 #include "platform/heap/Handle.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 class SVGMaskElement final : public SVGElement, | 34 class SVGMaskElement final : public SVGElement, |
| 35 public SVGTests { | 35 public SVGTests { |
| 36 DEFINE_WRAPPERTYPEINFO(); | 36 DEFINE_WRAPPERTYPEINFO(); |
| 37 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SVGMaskElement); | 37 USING_GARBAGE_COLLECTED_MIXIN(SVGMaskElement); |
| 38 public: | 38 public: |
| 39 DECLARE_NODE_FACTORY(SVGMaskElement); | 39 DECLARE_NODE_FACTORY(SVGMaskElement); |
| 40 | 40 |
| 41 SVGAnimatedLength* x() const { return m_x.get(); } | 41 SVGAnimatedLength* x() const { return m_x.get(); } |
| 42 SVGAnimatedLength* y() const { return m_y.get(); } | 42 SVGAnimatedLength* y() const { return m_y.get(); } |
| 43 SVGAnimatedLength* width() const { return m_width.get(); } | 43 SVGAnimatedLength* width() const { return m_width.get(); } |
| 44 SVGAnimatedLength* height() const { return m_height.get(); } | 44 SVGAnimatedLength* height() const { return m_height.get(); } |
| 45 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* maskUnits() { return m_ma
skUnits.get(); } | 45 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* maskUnits() { return m_ma
skUnits.get(); } |
| 46 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* maskContentUnits() { retu
rn m_maskContentUnits.get(); } | 46 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* maskContentUnits() { retu
rn m_maskContentUnits.get(); } |
| 47 | 47 |
| 48 DECLARE_VIRTUAL_TRACE(); | 48 DECLARE_VIRTUAL_TRACE(); |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 explicit SVGMaskElement(Document&); | 51 explicit SVGMaskElement(Document&); |
| 52 | 52 |
| 53 bool isValid() const override { return SVGTests::isValid(); } | 53 bool isValid() const override { return SVGTests::isValid(); } |
| 54 bool needsPendingResourceHandling() const override { return false; } | 54 bool needsPendingResourceHandling() const override { return false; } |
| 55 | 55 |
| 56 bool isPresentationAttribute(const QualifiedName&) const override; | 56 bool isPresentationAttribute(const QualifiedName&) const override; |
| 57 bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const override; | 57 bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const override; |
| 58 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic
String&, MutableStylePropertySet*) override; | 58 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic
String&, MutableStylePropertySet*) override; |
| 59 void svgAttributeChanged(const QualifiedName&) override; | 59 void svgAttributeChanged(const QualifiedName&) override; |
| 60 void childrenChanged(const ChildrenChange&) override; | 60 void childrenChanged(const ChildrenChange&) override; |
| 61 | 61 |
| 62 LayoutObject* createLayoutObject(const ComputedStyle&) override; | 62 LayoutObject* createLayoutObject(const ComputedStyle&) override; |
| 63 | 63 |
| 64 bool selfHasRelativeLengths() const override; | 64 bool selfHasRelativeLengths() const override; |
| 65 | 65 |
| 66 RefPtrWillBeMember<SVGAnimatedLength> m_x; | 66 Member<SVGAnimatedLength> m_x; |
| 67 RefPtrWillBeMember<SVGAnimatedLength> m_y; | 67 Member<SVGAnimatedLength> m_y; |
| 68 RefPtrWillBeMember<SVGAnimatedLength> m_width; | 68 Member<SVGAnimatedLength> m_width; |
| 69 RefPtrWillBeMember<SVGAnimatedLength> m_height; | 69 Member<SVGAnimatedLength> m_height; |
| 70 RefPtrWillBeMember<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>> m_mask
Units; | 70 Member<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>> m_maskUnits; |
| 71 RefPtrWillBeMember<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>> m_mask
ContentUnits; | 71 Member<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>> m_maskContentUnits
; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 } // namespace blink | 74 } // namespace blink |
| 75 | 75 |
| 76 #endif // SVGMaskElement_h | 76 #endif // SVGMaskElement_h |
| OLD | NEW |