| 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 12 matching lines...) Expand all Loading... |
| 23 #include "core/SVGNames.h" | 23 #include "core/SVGNames.h" |
| 24 #include "core/svg/SVGAnimatedBoolean.h" | 24 #include "core/svg/SVGAnimatedBoolean.h" |
| 25 #include "core/svg/SVGAnimatedEnumeration.h" | 25 #include "core/svg/SVGAnimatedEnumeration.h" |
| 26 #include "core/svg/SVGAnimatedLength.h" | 26 #include "core/svg/SVGAnimatedLength.h" |
| 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 | 30 |
| 31 namespace blink { | 31 namespace blink { |
| 32 | 32 |
| 33 class SVGMaskElement FINAL : public SVGElement, | 33 class SVGMaskElement final : public SVGElement, |
| 34 public SVGTests { | 34 public SVGTests { |
| 35 DEFINE_WRAPPERTYPEINFO(); | 35 DEFINE_WRAPPERTYPEINFO(); |
| 36 public: | 36 public: |
| 37 DECLARE_NODE_FACTORY(SVGMaskElement); | 37 DECLARE_NODE_FACTORY(SVGMaskElement); |
| 38 | 38 |
| 39 SVGAnimatedLength* x() const { return m_x.get(); } | 39 SVGAnimatedLength* x() const { return m_x.get(); } |
| 40 SVGAnimatedLength* y() const { return m_y.get(); } | 40 SVGAnimatedLength* y() const { return m_y.get(); } |
| 41 SVGAnimatedLength* width() const { return m_width.get(); } | 41 SVGAnimatedLength* width() const { return m_width.get(); } |
| 42 SVGAnimatedLength* height() const { return m_height.get(); } | 42 SVGAnimatedLength* height() const { return m_height.get(); } |
| 43 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* maskUnits() { return m_ma
skUnits.get(); } | 43 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* maskUnits() { return m_ma
skUnits.get(); } |
| 44 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* maskContentUnits() { retu
rn m_maskContentUnits.get(); } | 44 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* maskContentUnits() { retu
rn m_maskContentUnits.get(); } |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 explicit SVGMaskElement(Document&); | 47 explicit SVGMaskElement(Document&); |
| 48 | 48 |
| 49 virtual bool isValid() const OVERRIDE { return SVGTests::isValid(); } | 49 virtual bool isValid() const override { return SVGTests::isValid(); } |
| 50 virtual bool needsPendingResourceHandling() const OVERRIDE { return false; } | 50 virtual bool needsPendingResourceHandling() const override { return false; } |
| 51 | 51 |
| 52 bool isSupportedAttribute(const QualifiedName&); | 52 bool isSupportedAttribute(const QualifiedName&); |
| 53 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 53 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; |
| 54 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 54 virtual void svgAttributeChanged(const QualifiedName&) override; |
| 55 virtual void childrenChanged(const ChildrenChange&) OVERRIDE; | 55 virtual void childrenChanged(const ChildrenChange&) override; |
| 56 | 56 |
| 57 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 57 virtual RenderObject* createRenderer(RenderStyle*) override; |
| 58 | 58 |
| 59 virtual bool selfHasRelativeLengths() const OVERRIDE; | 59 virtual bool selfHasRelativeLengths() const override; |
| 60 | 60 |
| 61 RefPtr<SVGAnimatedLength> m_x; | 61 RefPtr<SVGAnimatedLength> m_x; |
| 62 RefPtr<SVGAnimatedLength> m_y; | 62 RefPtr<SVGAnimatedLength> m_y; |
| 63 RefPtr<SVGAnimatedLength> m_width; | 63 RefPtr<SVGAnimatedLength> m_width; |
| 64 RefPtr<SVGAnimatedLength> m_height; | 64 RefPtr<SVGAnimatedLength> m_height; |
| 65 RefPtr<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_maskUnits; | 65 RefPtr<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_maskUnits; |
| 66 RefPtr<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_maskContentUnit
s; | 66 RefPtr<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_maskContentUnit
s; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace blink | 69 } // namespace blink |
| 70 | 70 |
| 71 #endif // SVGMaskElement_h | 71 #endif // SVGMaskElement_h |
| OLD | NEW |