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

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

Issue 955033002: [svg2] Make 'rx' and 'ry' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review fixes 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
« no previous file with comments | « Source/core/svg/SVGEllipseElement.cpp ('k') | Source/core/svg/SVGRectElement.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) 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 DECLARE_VIRTUAL_TRACE(); 44 DECLARE_VIRTUAL_TRACE();
45 45
46 private:
47 explicit SVGRectElement(Document&);
48
46 virtual bool isPresentationAttribute(const QualifiedName&) const override; 49 virtual bool isPresentationAttribute(const QualifiedName&) const override;
47 virtual bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const o verride; 50 virtual bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const o verride;
48 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) override; 51 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) override;
49
50 private:
51 explicit SVGRectElement(Document&);
52
53 bool isSupportedAttribute(const QualifiedName&); 52 bool isSupportedAttribute(const QualifiedName&);
54 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide; 53 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide;
55 virtual void svgAttributeChanged(const QualifiedName&) override; 54 virtual void svgAttributeChanged(const QualifiedName&) override;
56 55
57 virtual bool selfHasRelativeLengths() const override; 56 virtual bool selfHasRelativeLengths() const override;
58 57
59 virtual LayoutObject* createRenderer(const LayoutStyle&) override; 58 virtual LayoutObject* createRenderer(const LayoutStyle&) override;
60 59
61 RefPtrWillBeMember<SVGAnimatedLength> m_x; 60 RefPtrWillBeMember<SVGAnimatedLength> m_x;
62 RefPtrWillBeMember<SVGAnimatedLength> m_y; 61 RefPtrWillBeMember<SVGAnimatedLength> m_y;
63 RefPtrWillBeMember<SVGAnimatedLength> m_width; 62 RefPtrWillBeMember<SVGAnimatedLength> m_width;
64 RefPtrWillBeMember<SVGAnimatedLength> m_height; 63 RefPtrWillBeMember<SVGAnimatedLength> m_height;
65 RefPtrWillBeMember<SVGAnimatedLength> m_rx; 64 RefPtrWillBeMember<SVGAnimatedLength> m_rx;
66 RefPtrWillBeMember<SVGAnimatedLength> m_ry; 65 RefPtrWillBeMember<SVGAnimatedLength> m_ry;
67 }; 66 };
68 67
69 } // namespace blink 68 } // namespace blink
70 69
71 #endif // SVGRectElement_h 70 #endif // SVGRectElement_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGEllipseElement.cpp ('k') | Source/core/svg/SVGRectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698