| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 public SVGTests, | 44 public SVGTests, |
| 45 public SVGExternalResourcesRequired, | 45 public SVGExternalResourcesRequired, |
| 46 public SVGFitToViewBox { | 46 public SVGFitToViewBox { |
| 47 public: | 47 public: |
| 48 static PassRefPtr<SVGPatternElement> create(Document&); | 48 static PassRefPtr<SVGPatternElement> create(Document&); |
| 49 | 49 |
| 50 void collectPatternAttributes(PatternAttributes&) const; | 50 void collectPatternAttributes(PatternAttributes&) const; |
| 51 | 51 |
| 52 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope)
const; | 52 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope)
const; |
| 53 | 53 |
| 54 SVGAnimatedLength* x() const { return m_x.get(); } |
| 55 SVGAnimatedLength* y() const { return m_y.get(); } |
| 56 SVGAnimatedLength* width() const { return m_width.get(); } |
| 57 SVGAnimatedLength* height() const { return m_height.get(); } |
| 58 |
| 54 private: | 59 private: |
| 55 explicit SVGPatternElement(Document&); | 60 explicit SVGPatternElement(Document&); |
| 56 | 61 |
| 57 virtual bool isValid() const { return SVGTests::isValid(); } | 62 virtual bool isValid() const { return SVGTests::isValid(); } |
| 58 virtual bool needsPendingResourceHandling() const { return false; } | 63 virtual bool needsPendingResourceHandling() const { return false; } |
| 59 | 64 |
| 60 bool isSupportedAttribute(const QualifiedName&); | 65 bool isSupportedAttribute(const QualifiedName&); |
| 61 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 66 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 62 virtual void svgAttributeChanged(const QualifiedName&); | 67 virtual void svgAttributeChanged(const QualifiedName&); |
| 63 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 68 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); |
| 64 | 69 |
| 65 virtual RenderObject* createRenderer(RenderStyle*); | 70 virtual RenderObject* createRenderer(RenderStyle*); |
| 66 | 71 |
| 67 virtual bool selfHasRelativeLengths() const; | 72 virtual bool selfHasRelativeLengths() const; |
| 68 | 73 |
| 74 RefPtr<SVGAnimatedLength> m_x; |
| 75 RefPtr<SVGAnimatedLength> m_y; |
| 76 RefPtr<SVGAnimatedLength> m_width; |
| 77 RefPtr<SVGAnimatedLength> m_height; |
| 69 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPatternElement) | 78 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPatternElement) |
| 70 DECLARE_ANIMATED_LENGTH(X, x) | |
| 71 DECLARE_ANIMATED_LENGTH(Y, y) | |
| 72 DECLARE_ANIMATED_LENGTH(Width, width) | |
| 73 DECLARE_ANIMATED_LENGTH(Height, height) | |
| 74 DECLARE_ANIMATED_ENUMERATION(PatternUnits, patternUnits, SVGUnitTypes::S
VGUnitType) | 79 DECLARE_ANIMATED_ENUMERATION(PatternUnits, patternUnits, SVGUnitTypes::S
VGUnitType) |
| 75 DECLARE_ANIMATED_ENUMERATION(PatternContentUnits, patternContentUnits, S
VGUnitTypes::SVGUnitType) | 80 DECLARE_ANIMATED_ENUMERATION(PatternContentUnits, patternContentUnits, S
VGUnitTypes::SVGUnitType) |
| 76 DECLARE_ANIMATED_TRANSFORM_LIST(PatternTransform, patternTransform) | 81 DECLARE_ANIMATED_TRANSFORM_LIST(PatternTransform, patternTransform) |
| 77 DECLARE_ANIMATED_STRING(Href, href) | 82 DECLARE_ANIMATED_STRING(Href, href) |
| 78 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) | 83 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) |
| 79 DECLARE_ANIMATED_RECT(ViewBox, viewBox) | 84 DECLARE_ANIMATED_RECT(ViewBox, viewBox) |
| 80 DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspect
Ratio) | 85 DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspect
Ratio) |
| 81 END_DECLARE_ANIMATED_PROPERTIES | 86 END_DECLARE_ANIMATED_PROPERTIES |
| 82 | 87 |
| 83 // SVGTests | 88 // SVGTests |
| 84 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe
atures(this); } | 89 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe
atures(this); } |
| 85 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired
Extensions(this); } | 90 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired
Extensions(this); } |
| 86 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua
ge(this); } | 91 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua
ge(this); } |
| 87 }; | 92 }; |
| 88 | 93 |
| 89 DEFINE_NODE_TYPE_CASTS(SVGPatternElement, hasTagName(SVGNames::patternTag)); | 94 DEFINE_NODE_TYPE_CASTS(SVGPatternElement, hasTagName(SVGNames::patternTag)); |
| 90 | 95 |
| 91 } // namespace WebCore | 96 } // namespace WebCore |
| 92 | 97 |
| 93 #endif | 98 #endif |
| OLD | NEW |