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

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

Issue 134593005: Update SVG classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « Source/core/svg/SVGLengthTearOff.h ('k') | Source/core/svg/SVGLinearGradientElement.h » ('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 22 matching lines...) Expand all
33 static PassRefPtr<SVGLineElement> create(Document&); 33 static PassRefPtr<SVGLineElement> create(Document&);
34 34
35 SVGAnimatedLength* x1() const { return m_x1.get(); } 35 SVGAnimatedLength* x1() const { return m_x1.get(); }
36 SVGAnimatedLength* y1() const { return m_y1.get(); } 36 SVGAnimatedLength* y1() const { return m_y1.get(); }
37 SVGAnimatedLength* x2() const { return m_x2.get(); } 37 SVGAnimatedLength* x2() const { return m_x2.get(); }
38 SVGAnimatedLength* y2() const { return m_y2.get(); } 38 SVGAnimatedLength* y2() const { return m_y2.get(); }
39 39
40 private: 40 private:
41 explicit SVGLineElement(Document&); 41 explicit SVGLineElement(Document&);
42 42
43 virtual bool isValid() const { return SVGTests::isValid(); } 43 virtual bool isValid() const OVERRIDE { return SVGTests::isValid(); }
44 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners( ); } 44 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners( ); }
45 45
46 bool isSupportedAttribute(const QualifiedName&); 46 bool isSupportedAttribute(const QualifiedName&);
47 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 47 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
48 virtual void svgAttributeChanged(const QualifiedName&); 48 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
49 49
50 virtual bool supportsMarkers() const { return true; } 50 virtual bool supportsMarkers() const OVERRIDE { return true; }
51 51
52 virtual bool selfHasRelativeLengths() const; 52 virtual bool selfHasRelativeLengths() const OVERRIDE;
53 53
54 RefPtr<SVGAnimatedLength> m_x1; 54 RefPtr<SVGAnimatedLength> m_x1;
55 RefPtr<SVGAnimatedLength> m_y1; 55 RefPtr<SVGAnimatedLength> m_y1;
56 RefPtr<SVGAnimatedLength> m_x2; 56 RefPtr<SVGAnimatedLength> m_x2;
57 RefPtr<SVGAnimatedLength> m_y2; 57 RefPtr<SVGAnimatedLength> m_y2;
58 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGLineElement) 58 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGLineElement)
59 END_DECLARE_ANIMATED_PROPERTIES 59 END_DECLARE_ANIMATED_PROPERTIES
60 }; 60 };
61 61
62 DEFINE_NODE_TYPE_CASTS(SVGLineElement, hasTagName(SVGNames::lineTag)); 62 DEFINE_NODE_TYPE_CASTS(SVGLineElement, hasTagName(SVGNames::lineTag));
63 63
64 } // namespace WebCore 64 } // namespace WebCore
65 65
66 #endif 66 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGLengthTearOff.h ('k') | Source/core/svg/SVGLinearGradientElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698