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

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

Issue 896773002: [svg2] Make 'x' and 'y' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: cleanup Created 5 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
OLDNEW
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 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 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 25 matching lines...) Expand all
36 36
37 SVGAnimatedLength* x() const { return m_x.get(); } 37 SVGAnimatedLength* x() const { return m_x.get(); }
38 SVGAnimatedLength* y() const { return m_y.get(); } 38 SVGAnimatedLength* y() const { return m_y.get(); }
39 SVGAnimatedLength* width() const { return m_width.get(); } 39 SVGAnimatedLength* width() const { return m_width.get(); }
40 SVGAnimatedLength* height() const { return m_height.get(); } 40 SVGAnimatedLength* height() const { return m_height.get(); }
41 SVGAnimatedLength* rx() const { return m_rx.get(); } 41 SVGAnimatedLength* rx() const { return m_rx.get(); }
42 SVGAnimatedLength* ry() const { return m_ry.get(); } 42 SVGAnimatedLength* ry() const { return m_ry.get(); }
43 43
44 virtual void trace(Visitor*) override; 44 virtual void trace(Visitor*) override;
45 45
46 virtual bool isPresentationAttribute(const QualifiedName&) const override;
fs 2015/02/04 13:24:53 final
Erik Dahlström (inactive) 2015/02/05 16:09:02 Done.
47 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) override final;
48
46 private: 49 private:
47 explicit SVGRectElement(Document&); 50 explicit SVGRectElement(Document&);
48 51
49 bool isSupportedAttribute(const QualifiedName&); 52 bool isSupportedAttribute(const QualifiedName&);
50 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide; 53 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide;
51 virtual void svgAttributeChanged(const QualifiedName&) override; 54 virtual void svgAttributeChanged(const QualifiedName&) override;
52 55
53 virtual bool selfHasRelativeLengths() const override; 56 virtual bool selfHasRelativeLengths() const override;
54 57
55 virtual RenderObject* createRenderer(RenderStyle*) override; 58 virtual RenderObject* createRenderer(RenderStyle*) override;
56 59
57 RefPtrWillBeMember<SVGAnimatedLength> m_x; 60 RefPtrWillBeMember<SVGAnimatedLength> m_x;
58 RefPtrWillBeMember<SVGAnimatedLength> m_y; 61 RefPtrWillBeMember<SVGAnimatedLength> m_y;
59 RefPtrWillBeMember<SVGAnimatedLength> m_width; 62 RefPtrWillBeMember<SVGAnimatedLength> m_width;
60 RefPtrWillBeMember<SVGAnimatedLength> m_height; 63 RefPtrWillBeMember<SVGAnimatedLength> m_height;
61 RefPtrWillBeMember<SVGAnimatedLength> m_rx; 64 RefPtrWillBeMember<SVGAnimatedLength> m_rx;
62 RefPtrWillBeMember<SVGAnimatedLength> m_ry; 65 RefPtrWillBeMember<SVGAnimatedLength> m_ry;
63 }; 66 };
64 67
65 } // namespace blink 68 } // namespace blink
66 69
67 #endif // SVGRectElement_h 70 #endif // SVGRectElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698