Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: Source/core/svg/SVGMaskElement.h

Issue 112003003: [SVG] SVGLength{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: revert aggressive svgAttributeChanged, add NeedsRebaseline Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGMarkerElement.cpp ('k') | Source/core/svg/SVGMaskElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 17 matching lines...) Expand all
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 WebCore { 31 namespace WebCore {
32 32
33 class SVGMaskElement FINAL : public SVGElement, 33 class SVGMaskElement FINAL : public SVGElement,
34 public SVGTests { 34 public SVGTests {
35 public: 35 public:
36 static PassRefPtr<SVGMaskElement> create(Document&); 36 static PassRefPtr<SVGMaskElement> create(Document&);
37 37
38 SVGAnimatedLength* x() const { return m_x.get(); }
39 SVGAnimatedLength* y() const { return m_y.get(); }
40 SVGAnimatedLength* width() const { return m_width.get(); }
41 SVGAnimatedLength* height() const { return m_height.get(); }
42
38 private: 43 private:
39 explicit SVGMaskElement(Document&); 44 explicit SVGMaskElement(Document&);
40 45
41 virtual bool isValid() const { return SVGTests::isValid(); } 46 virtual bool isValid() const { return SVGTests::isValid(); }
42 virtual bool needsPendingResourceHandling() const { return false; } 47 virtual bool needsPendingResourceHandling() const { return false; }
43 48
44 bool isSupportedAttribute(const QualifiedName&); 49 bool isSupportedAttribute(const QualifiedName&);
45 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 50 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
46 virtual void svgAttributeChanged(const QualifiedName&); 51 virtual void svgAttributeChanged(const QualifiedName&);
47 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0); 52 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0);
48 53
49 virtual RenderObject* createRenderer(RenderStyle*); 54 virtual RenderObject* createRenderer(RenderStyle*);
50 55
51 virtual bool selfHasRelativeLengths() const; 56 virtual bool selfHasRelativeLengths() const;
52 57
58 RefPtr<SVGAnimatedLength> m_x;
59 RefPtr<SVGAnimatedLength> m_y;
60 RefPtr<SVGAnimatedLength> m_width;
61 RefPtr<SVGAnimatedLength> m_height;
53 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGMaskElement) 62 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGMaskElement)
54 DECLARE_ANIMATED_ENUMERATION(MaskUnits, maskUnits, SVGUnitTypes::SVGUnit Type) 63 DECLARE_ANIMATED_ENUMERATION(MaskUnits, maskUnits, SVGUnitTypes::SVGUnit Type)
55 DECLARE_ANIMATED_ENUMERATION(MaskContentUnits, maskContentUnits, SVGUnit Types::SVGUnitType) 64 DECLARE_ANIMATED_ENUMERATION(MaskContentUnits, maskContentUnits, SVGUnit Types::SVGUnitType)
56 DECLARE_ANIMATED_LENGTH(X, x)
57 DECLARE_ANIMATED_LENGTH(Y, y)
58 DECLARE_ANIMATED_LENGTH(Width, width)
59 DECLARE_ANIMATED_LENGTH(Height, height)
60 END_DECLARE_ANIMATED_PROPERTIES 65 END_DECLARE_ANIMATED_PROPERTIES
61 66
62 // SVGTests 67 // SVGTests
63 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe atures(this); } 68 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe atures(this); }
64 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired Extensions(this); } 69 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired Extensions(this); }
65 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua ge(this); } 70 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua ge(this); }
66 }; 71 };
67 72
68 DEFINE_NODE_TYPE_CASTS(SVGMaskElement, hasTagName(SVGNames::maskTag)); 73 DEFINE_NODE_TYPE_CASTS(SVGMaskElement, hasTagName(SVGNames::maskTag));
69 74
70 } 75 }
71 76
72 #endif 77 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGMarkerElement.cpp ('k') | Source/core/svg/SVGMaskElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698