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

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

Issue 169103002: Drop [LegacyImplementedInBaseClass] from SVGURIReference IDL interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 30 matching lines...) Expand all
41 static PassRefPtr<SVGFilterElement> create(Document&); 41 static PassRefPtr<SVGFilterElement> create(Document&);
42 42
43 void setFilterRes(unsigned x, unsigned y); 43 void setFilterRes(unsigned x, unsigned y);
44 void addClient(Node*); 44 void addClient(Node*);
45 void removeClient(Node*); 45 void removeClient(Node*);
46 46
47 SVGAnimatedLength* x() const { return m_x.get(); } 47 SVGAnimatedLength* x() const { return m_x.get(); }
48 SVGAnimatedLength* y() const { return m_y.get(); } 48 SVGAnimatedLength* y() const { return m_y.get(); }
49 SVGAnimatedLength* width() const { return m_width.get(); } 49 SVGAnimatedLength* width() const { return m_width.get(); }
50 SVGAnimatedLength* height() const { return m_height.get(); } 50 SVGAnimatedLength* height() const { return m_height.get(); }
51 SVGAnimatedString* href() { return m_href.get(); }
52 SVGAnimatedInteger* filterResX() { return m_filterRes->firstInteger(); } 51 SVGAnimatedInteger* filterResX() { return m_filterRes->firstInteger(); }
53 SVGAnimatedInteger* filterResY() { return m_filterRes->secondInteger(); } 52 SVGAnimatedInteger* filterResY() { return m_filterRes->secondInteger(); }
54 53
55 private: 54 private:
56 explicit SVGFilterElement(Document&); 55 explicit SVGFilterElement(Document&);
57 56
58 virtual bool needsPendingResourceHandling() const OVERRIDE { return false; } 57 virtual bool needsPendingResourceHandling() const OVERRIDE { return false; }
59 58
60 bool isSupportedAttribute(const QualifiedName&); 59 bool isSupportedAttribute(const QualifiedName&);
61 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 60 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
62 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; 61 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
63 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; 62 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE;
64 63
65 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; 64 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
66 65
67 virtual bool selfHasRelativeLengths() const OVERRIDE; 66 virtual bool selfHasRelativeLengths() const OVERRIDE;
68 67
69 RefPtr<SVGAnimatedLength> m_x; 68 RefPtr<SVGAnimatedLength> m_x;
70 RefPtr<SVGAnimatedLength> m_y; 69 RefPtr<SVGAnimatedLength> m_y;
71 RefPtr<SVGAnimatedLength> m_width; 70 RefPtr<SVGAnimatedLength> m_width;
72 RefPtr<SVGAnimatedLength> m_height; 71 RefPtr<SVGAnimatedLength> m_height;
73 RefPtr<SVGAnimatedString> m_href;
74 RefPtr<SVGAnimatedIntegerOptionalInteger> m_filterRes; 72 RefPtr<SVGAnimatedIntegerOptionalInteger> m_filterRes;
75 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFilterElement) 73 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFilterElement)
76 DECLARE_ANIMATED_ENUMERATION(FilterUnits, filterUnits, SVGUnitTypes::SVG UnitType) 74 DECLARE_ANIMATED_ENUMERATION(FilterUnits, filterUnits, SVGUnitTypes::SVG UnitType)
77 DECLARE_ANIMATED_ENUMERATION(PrimitiveUnits, primitiveUnits, SVGUnitType s::SVGUnitType) 75 DECLARE_ANIMATED_ENUMERATION(PrimitiveUnits, primitiveUnits, SVGUnitType s::SVGUnitType)
78 END_DECLARE_ANIMATED_PROPERTIES 76 END_DECLARE_ANIMATED_PROPERTIES
79 77
80 HashSet<RefPtr<Node> > m_clientsToAdd; 78 HashSet<RefPtr<Node> > m_clientsToAdd;
81 }; 79 };
82 80
83 DEFINE_NODE_TYPE_CASTS(SVGFilterElement, hasTagName(SVGNames::filterTag)); 81 DEFINE_NODE_TYPE_CASTS(SVGFilterElement, hasTagName(SVGNames::filterTag));
84 82
85 } 83 }
86 84
87 #endif 85 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698