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

Side by Side Diff: Source/core/svg/SVGPolyElement.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/SVGPatternElement.h ('k') | Source/core/svg/SVGRadialGradientElement.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, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 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 23 matching lines...) Expand all
34 SVGListPropertyTearOff<SVGPointList>* animatedPoints(); 34 SVGListPropertyTearOff<SVGPointList>* animatedPoints();
35 35
36 SVGPointList& pointsCurrentValue(); 36 SVGPointList& pointsCurrentValue();
37 37
38 static const SVGPropertyInfo* pointsPropertyInfo(); 38 static const SVGPropertyInfo* pointsPropertyInfo();
39 39
40 protected: 40 protected:
41 SVGPolyElement(const QualifiedName&, Document&); 41 SVGPolyElement(const QualifiedName&, Document&);
42 42
43 private: 43 private:
44 virtual bool isValid() const { return SVGTests::isValid(); } 44 virtual bool isValid() const OVERRIDE FINAL { return SVGTests::isValid(); }
45 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners( ); } 45 virtual bool supportsFocus() const OVERRIDE FINAL { return hasFocusEventList eners(); }
46 46
47 bool isSupportedAttribute(const QualifiedName&); 47 bool isSupportedAttribute(const QualifiedName&);
48 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 48 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE FINAL;
49 virtual void svgAttributeChanged(const QualifiedName&); 49 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE FINAL;
50 50
51 virtual bool supportsMarkers() const { return true; } 51 virtual bool supportsMarkers() const OVERRIDE FINAL { return true; }
52 52
53 // Custom 'points' property 53 // Custom 'points' property
54 static void synchronizePoints(SVGElement* contextElement); 54 static void synchronizePoints(SVGElement* contextElement);
55 static PassRefPtr<SVGAnimatedProperty> lookupOrCreatePointsWrapper(SVGElemen t* contextElement); 55 static PassRefPtr<SVGAnimatedProperty> lookupOrCreatePointsWrapper(SVGElemen t* contextElement);
56 56
57 mutable SVGSynchronizableAnimatedProperty<SVGPointList> m_points; 57 mutable SVGSynchronizableAnimatedProperty<SVGPointList> m_points;
58 58
59 private: 59 private:
60 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPolyElement) 60 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPolyElement)
61 END_DECLARE_ANIMATED_PROPERTIES 61 END_DECLARE_ANIMATED_PROPERTIES
62 }; 62 };
63 63
64 inline bool isSVGPolyElement(const Node& node) 64 inline bool isSVGPolyElement(const Node& node)
65 { 65 {
66 return node.hasTagName(SVGNames::polygonTag) || node.hasTagName(SVGNames::po lylineTag); 66 return node.hasTagName(SVGNames::polygonTag) || node.hasTagName(SVGNames::po lylineTag);
67 } 67 }
68 68
69 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGPolyElement); 69 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGPolyElement);
70 70
71 } // namespace WebCore 71 } // namespace WebCore
72 72
73 #endif 73 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPatternElement.h ('k') | Source/core/svg/SVGRadialGradientElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698