| 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 11 matching lines...) Expand all Loading... |
| 22 #define SVGPatternElement_h | 22 #define SVGPatternElement_h |
| 23 | 23 |
| 24 #include "SVGNames.h" | 24 #include "SVGNames.h" |
| 25 #include "core/svg/SVGAnimatedBoolean.h" | 25 #include "core/svg/SVGAnimatedBoolean.h" |
| 26 #include "core/svg/SVGAnimatedEnumeration.h" | 26 #include "core/svg/SVGAnimatedEnumeration.h" |
| 27 #include "core/svg/SVGAnimatedLength.h" | 27 #include "core/svg/SVGAnimatedLength.h" |
| 28 #include "core/svg/SVGAnimatedPreserveAspectRatio.h" | 28 #include "core/svg/SVGAnimatedPreserveAspectRatio.h" |
| 29 #include "core/svg/SVGAnimatedRect.h" | 29 #include "core/svg/SVGAnimatedRect.h" |
| 30 #include "core/svg/SVGAnimatedTransformList.h" | 30 #include "core/svg/SVGAnimatedTransformList.h" |
| 31 #include "core/svg/SVGElement.h" | 31 #include "core/svg/SVGElement.h" |
| 32 #include "core/svg/SVGExternalResourcesRequired.h" | |
| 33 #include "core/svg/SVGFitToViewBox.h" | 32 #include "core/svg/SVGFitToViewBox.h" |
| 34 #include "core/svg/SVGTests.h" | 33 #include "core/svg/SVGTests.h" |
| 35 #include "core/svg/SVGURIReference.h" | 34 #include "core/svg/SVGURIReference.h" |
| 36 #include "core/svg/SVGUnitTypes.h" | 35 #include "core/svg/SVGUnitTypes.h" |
| 37 | 36 |
| 38 namespace WebCore { | 37 namespace WebCore { |
| 39 | 38 |
| 40 struct PatternAttributes; | 39 struct PatternAttributes; |
| 41 | 40 |
| 42 class SVGPatternElement FINAL : public SVGElement, | 41 class SVGPatternElement FINAL : public SVGElement, |
| 43 public SVGURIReference, | 42 public SVGURIReference, |
| 44 public SVGTests, | 43 public SVGTests, |
| 45 public SVGExternalResourcesRequired, | |
| 46 public SVGFitToViewBox { | 44 public SVGFitToViewBox { |
| 47 public: | 45 public: |
| 48 static PassRefPtr<SVGPatternElement> create(Document&); | 46 static PassRefPtr<SVGPatternElement> create(Document&); |
| 49 | 47 |
| 50 void collectPatternAttributes(PatternAttributes&) const; | 48 void collectPatternAttributes(PatternAttributes&) const; |
| 51 | 49 |
| 52 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope)
const; | 50 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope)
const; |
| 53 | 51 |
| 54 private: | 52 private: |
| 55 explicit SVGPatternElement(Document&); | 53 explicit SVGPatternElement(Document&); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 68 | 66 |
| 69 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPatternElement) | 67 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPatternElement) |
| 70 DECLARE_ANIMATED_LENGTH(X, x) | 68 DECLARE_ANIMATED_LENGTH(X, x) |
| 71 DECLARE_ANIMATED_LENGTH(Y, y) | 69 DECLARE_ANIMATED_LENGTH(Y, y) |
| 72 DECLARE_ANIMATED_LENGTH(Width, width) | 70 DECLARE_ANIMATED_LENGTH(Width, width) |
| 73 DECLARE_ANIMATED_LENGTH(Height, height) | 71 DECLARE_ANIMATED_LENGTH(Height, height) |
| 74 DECLARE_ANIMATED_ENUMERATION(PatternUnits, patternUnits, SVGUnitTypes::S
VGUnitType) | 72 DECLARE_ANIMATED_ENUMERATION(PatternUnits, patternUnits, SVGUnitTypes::S
VGUnitType) |
| 75 DECLARE_ANIMATED_ENUMERATION(PatternContentUnits, patternContentUnits, S
VGUnitTypes::SVGUnitType) | 73 DECLARE_ANIMATED_ENUMERATION(PatternContentUnits, patternContentUnits, S
VGUnitTypes::SVGUnitType) |
| 76 DECLARE_ANIMATED_TRANSFORM_LIST(PatternTransform, patternTransform) | 74 DECLARE_ANIMATED_TRANSFORM_LIST(PatternTransform, patternTransform) |
| 77 DECLARE_ANIMATED_STRING(Href, href) | 75 DECLARE_ANIMATED_STRING(Href, href) |
| 78 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) | |
| 79 DECLARE_ANIMATED_RECT(ViewBox, viewBox) | 76 DECLARE_ANIMATED_RECT(ViewBox, viewBox) |
| 80 DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspect
Ratio) | 77 DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspect
Ratio) |
| 81 END_DECLARE_ANIMATED_PROPERTIES | 78 END_DECLARE_ANIMATED_PROPERTIES |
| 82 | 79 |
| 83 // SVGTests | 80 // SVGTests |
| 84 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe
atures(this); } | 81 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe
atures(this); } |
| 85 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired
Extensions(this); } | 82 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired
Extensions(this); } |
| 86 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua
ge(this); } | 83 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua
ge(this); } |
| 87 }; | 84 }; |
| 88 | 85 |
| 89 DEFINE_NODE_TYPE_CASTS(SVGPatternElement, hasTagName(SVGNames::patternTag)); | 86 DEFINE_NODE_TYPE_CASTS(SVGPatternElement, hasTagName(SVGNames::patternTag)); |
| 90 | 87 |
| 91 } // namespace WebCore | 88 } // namespace WebCore |
| 92 | 89 |
| 93 #endif | 90 #endif |
| OLD | NEW |