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

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: rebase 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/SVGPatternElement.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 virtual void trace(Visitor*) override; 44 virtual void trace(Visitor*) override;
45 45
46 virtual bool isPresentationAttribute(const QualifiedName&) const override;
47 virtual bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const o verride;
48 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) override;
49
46 private: 50 private:
47 explicit SVGRectElement(Document&); 51 explicit SVGRectElement(Document&);
48 52
49 bool isSupportedAttribute(const QualifiedName&); 53 bool isSupportedAttribute(const QualifiedName&);
50 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide; 54 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide;
51 virtual void svgAttributeChanged(const QualifiedName&) override; 55 virtual void svgAttributeChanged(const QualifiedName&) override;
52 56
53 virtual bool selfHasRelativeLengths() const override; 57 virtual bool selfHasRelativeLengths() const override;
54 58
55 virtual LayoutObject* createRenderer(const LayoutStyle&) override; 59 virtual LayoutObject* createRenderer(const LayoutStyle&) override;
56 60
57 RefPtrWillBeMember<SVGAnimatedLength> m_x; 61 RefPtrWillBeMember<SVGAnimatedLength> m_x;
58 RefPtrWillBeMember<SVGAnimatedLength> m_y; 62 RefPtrWillBeMember<SVGAnimatedLength> m_y;
59 RefPtrWillBeMember<SVGAnimatedLength> m_width; 63 RefPtrWillBeMember<SVGAnimatedLength> m_width;
60 RefPtrWillBeMember<SVGAnimatedLength> m_height; 64 RefPtrWillBeMember<SVGAnimatedLength> m_height;
61 RefPtrWillBeMember<SVGAnimatedLength> m_rx; 65 RefPtrWillBeMember<SVGAnimatedLength> m_rx;
62 RefPtrWillBeMember<SVGAnimatedLength> m_ry; 66 RefPtrWillBeMember<SVGAnimatedLength> m_ry;
63 }; 67 };
64 68
65 } // namespace blink 69 } // namespace blink
66 70
67 #endif // SVGRectElement_h 71 #endif // SVGRectElement_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPatternElement.cpp ('k') | Source/core/svg/SVGRectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698