| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 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 18 matching lines...) Expand all Loading... |
| 29 #include "core/svg/SVGElement.h" | 29 #include "core/svg/SVGElement.h" |
| 30 #include "core/svg/SVGFitToViewBox.h" | 30 #include "core/svg/SVGFitToViewBox.h" |
| 31 #include "core/svg/SVGTests.h" | 31 #include "core/svg/SVGTests.h" |
| 32 #include "core/svg/SVGURIReference.h" | 32 #include "core/svg/SVGURIReference.h" |
| 33 #include "core/svg/SVGUnitTypes.h" | 33 #include "core/svg/SVGUnitTypes.h" |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 struct PatternAttributes; | 37 struct PatternAttributes; |
| 38 | 38 |
| 39 class SVGPatternElement FINAL : public SVGElement, | 39 class SVGPatternElement final : public SVGElement, |
| 40 public SVGURIReference, | 40 public SVGURIReference, |
| 41 public SVGTests, | 41 public SVGTests, |
| 42 public SVGFitToViewBox { | 42 public SVGFitToViewBox { |
| 43 DEFINE_WRAPPERTYPEINFO(); | 43 DEFINE_WRAPPERTYPEINFO(); |
| 44 public: | 44 public: |
| 45 DECLARE_NODE_FACTORY(SVGPatternElement); | 45 DECLARE_NODE_FACTORY(SVGPatternElement); |
| 46 | 46 |
| 47 void collectPatternAttributes(PatternAttributes&) const; | 47 void collectPatternAttributes(PatternAttributes&) const; |
| 48 | 48 |
| 49 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope)
const OVERRIDE; | 49 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope)
const override; |
| 50 | 50 |
| 51 SVGAnimatedLength* x() const { return m_x.get(); } | 51 SVGAnimatedLength* x() const { return m_x.get(); } |
| 52 SVGAnimatedLength* y() const { return m_y.get(); } | 52 SVGAnimatedLength* y() const { return m_y.get(); } |
| 53 SVGAnimatedLength* width() const { return m_width.get(); } | 53 SVGAnimatedLength* width() const { return m_width.get(); } |
| 54 SVGAnimatedLength* height() const { return m_height.get(); } | 54 SVGAnimatedLength* height() const { return m_height.get(); } |
| 55 SVGAnimatedTransformList* patternTransform() { return m_patternTransform.get
(); } | 55 SVGAnimatedTransformList* patternTransform() { return m_patternTransform.get
(); } |
| 56 const SVGAnimatedTransformList* patternTransform() const { return m_patternT
ransform.get(); } | 56 const SVGAnimatedTransformList* patternTransform() const { return m_patternT
ransform.get(); } |
| 57 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* patternUnits() { return m
_patternUnits.get(); } | 57 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* patternUnits() { return m
_patternUnits.get(); } |
| 58 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* patternContentUnits() { r
eturn m_patternContentUnits.get(); } | 58 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* patternContentUnits() { r
eturn m_patternContentUnits.get(); } |
| 59 const SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* patternUnits() cons
t { return m_patternUnits.get(); } | 59 const SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* patternUnits() cons
t { return m_patternUnits.get(); } |
| 60 const SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* patternContentUnits
() const { return m_patternContentUnits.get(); } | 60 const SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* patternContentUnits
() const { return m_patternContentUnits.get(); } |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 explicit SVGPatternElement(Document&); | 63 explicit SVGPatternElement(Document&); |
| 64 | 64 |
| 65 virtual bool isValid() const OVERRIDE { return SVGTests::isValid(); } | 65 virtual bool isValid() const override { return SVGTests::isValid(); } |
| 66 virtual bool needsPendingResourceHandling() const OVERRIDE { return false; } | 66 virtual bool needsPendingResourceHandling() const override { return false; } |
| 67 | 67 |
| 68 bool isSupportedAttribute(const QualifiedName&); | 68 bool isSupportedAttribute(const QualifiedName&); |
| 69 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 69 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; |
| 70 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 70 virtual void svgAttributeChanged(const QualifiedName&) override; |
| 71 virtual void childrenChanged(const ChildrenChange&) OVERRIDE; | 71 virtual void childrenChanged(const ChildrenChange&) override; |
| 72 | 72 |
| 73 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 73 virtual RenderObject* createRenderer(RenderStyle*) override; |
| 74 | 74 |
| 75 virtual bool selfHasRelativeLengths() const OVERRIDE; | 75 virtual bool selfHasRelativeLengths() const override; |
| 76 | 76 |
| 77 RefPtr<SVGAnimatedLength> m_x; | 77 RefPtr<SVGAnimatedLength> m_x; |
| 78 RefPtr<SVGAnimatedLength> m_y; | 78 RefPtr<SVGAnimatedLength> m_y; |
| 79 RefPtr<SVGAnimatedLength> m_width; | 79 RefPtr<SVGAnimatedLength> m_width; |
| 80 RefPtr<SVGAnimatedLength> m_height; | 80 RefPtr<SVGAnimatedLength> m_height; |
| 81 RefPtr<SVGAnimatedTransformList> m_patternTransform; | 81 RefPtr<SVGAnimatedTransformList> m_patternTransform; |
| 82 RefPtr<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_patternUnits; | 82 RefPtr<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_patternUnits; |
| 83 RefPtr<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_patternContentU
nits; | 83 RefPtr<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_patternContentU
nits; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace blink | 86 } // namespace blink |
| 87 | 87 |
| 88 #endif // SVGPatternElement_h | 88 #endif // SVGPatternElement_h |
| OLD | NEW |