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

Side by Side Diff: Source/core/svg/SVGPathElement.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/SVGPathByteStreamSource.h ('k') | Source/core/svg/SVGPathSegArcAbs.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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // Used in the bindings only. 82 // Used in the bindings only.
83 SVGPathSegListPropertyTearOff* pathSegList(); 83 SVGPathSegListPropertyTearOff* pathSegList();
84 SVGPathSegListPropertyTearOff* animatedPathSegList(); 84 SVGPathSegListPropertyTearOff* animatedPathSegList();
85 SVGPathSegListPropertyTearOff* normalizedPathSegList(); 85 SVGPathSegListPropertyTearOff* normalizedPathSegList();
86 SVGPathSegListPropertyTearOff* animatedNormalizedPathSegList(); 86 SVGPathSegListPropertyTearOff* animatedNormalizedPathSegList();
87 87
88 SVGPathByteStream* pathByteStream() const; 88 SVGPathByteStream* pathByteStream() const;
89 89
90 void pathSegListChanged(SVGPathSegRole, ListModification = ListModificationU nknown); 90 void pathSegListChanged(SVGPathSegRole, ListModification = ListModificationU nknown);
91 91
92 virtual SVGRect getBBox() OVERRIDE FINAL; 92 virtual SVGRect getBBox() OVERRIDE;
93 93
94 static const SVGPropertyInfo* dPropertyInfo(); 94 static const SVGPropertyInfo* dPropertyInfo();
95 95
96 bool isAnimValObserved() const { return m_isAnimValObserved; } 96 bool isAnimValObserved() const { return m_isAnimValObserved; }
97 97
98 private: 98 private:
99 explicit SVGPathElement(Document&); 99 explicit SVGPathElement(Document&);
100 100
101 virtual bool isValid() const { return SVGTests::isValid(); } 101 virtual bool isValid() const OVERRIDE { return SVGTests::isValid(); }
102 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners( ); } 102 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners( ); }
103 103
104 bool isSupportedAttribute(const QualifiedName&); 104 bool isSupportedAttribute(const QualifiedName&);
105 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 105 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
106 virtual void svgAttributeChanged(const QualifiedName&); 106 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
107 virtual bool supportsMarkers() const { return true; } 107 virtual bool supportsMarkers() const OVERRIDE { return true; }
108 108
109 // Custom 'd' property 109 // Custom 'd' property
110 static void synchronizeD(SVGElement* contextElement); 110 static void synchronizeD(SVGElement* contextElement);
111 static PassRefPtr<SVGAnimatedProperty> lookupOrCreateDWrapper(SVGElement* co ntextElement); 111 static PassRefPtr<SVGAnimatedProperty> lookupOrCreateDWrapper(SVGElement* co ntextElement);
112 112
113 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; 113 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
114 114
115 virtual Node::InsertionNotificationRequest insertedInto(ContainerNode*) OVER RIDE; 115 virtual Node::InsertionNotificationRequest insertedInto(ContainerNode*) OVER RIDE;
116 virtual void removedFrom(ContainerNode*) OVERRIDE; 116 virtual void removedFrom(ContainerNode*) OVERRIDE;
117 117
118 void invalidateMPathDependencies(); 118 void invalidateMPathDependencies();
119 119
120 OwnPtr<SVGPathByteStream> m_pathByteStream; 120 OwnPtr<SVGPathByteStream> m_pathByteStream;
121 mutable SVGSynchronizableAnimatedProperty<SVGPathSegList> m_pathSegList; 121 mutable SVGSynchronizableAnimatedProperty<SVGPathSegList> m_pathSegList;
122 bool m_isAnimValObserved; 122 bool m_isAnimValObserved;
123 123
124 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPathElement) 124 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPathElement)
125 DECLARE_ANIMATED_NUMBER(PathLength, pathLength) 125 DECLARE_ANIMATED_NUMBER(PathLength, pathLength)
126 END_DECLARE_ANIMATED_PROPERTIES 126 END_DECLARE_ANIMATED_PROPERTIES
127 }; 127 };
128 128
129 DEFINE_NODE_TYPE_CASTS(SVGPathElement, hasTagName(SVGNames::pathTag)); 129 DEFINE_NODE_TYPE_CASTS(SVGPathElement, hasTagName(SVGNames::pathTag));
130 130
131 } // namespace WebCore 131 } // namespace WebCore
132 132
133 #endif 133 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPathByteStreamSource.h ('k') | Source/core/svg/SVGPathSegArcAbs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698