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

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

Issue 139813003: Move isValid implementations into SVGGraphicsElement (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/SVGLineElement.h ('k') | Source/core/svg/SVGPolyElement.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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 virtual SVGRect getBBox() OVERRIDE; 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 OVERRIDE { return SVGTests::isValid(); }
102 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners( ); } 101 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners( ); }
103 102
104 bool isSupportedAttribute(const QualifiedName&); 103 bool isSupportedAttribute(const QualifiedName&);
105 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 104 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
106 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; 105 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
107 virtual bool supportsMarkers() const OVERRIDE { return true; } 106 virtual bool supportsMarkers() const OVERRIDE { return true; }
108 107
109 // Custom 'd' property 108 // Custom 'd' property
110 static void synchronizeD(SVGElement* contextElement); 109 static void synchronizeD(SVGElement* contextElement);
111 static PassRefPtr<SVGAnimatedProperty> lookupOrCreateDWrapper(SVGElement* co ntextElement); 110 static PassRefPtr<SVGAnimatedProperty> lookupOrCreateDWrapper(SVGElement* co ntextElement);
(...skipping 10 matching lines...) Expand all
122 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPathElement) 121 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPathElement)
123 DECLARE_ANIMATED_NUMBER(PathLength, pathLength) 122 DECLARE_ANIMATED_NUMBER(PathLength, pathLength)
124 END_DECLARE_ANIMATED_PROPERTIES 123 END_DECLARE_ANIMATED_PROPERTIES
125 }; 124 };
126 125
127 DEFINE_NODE_TYPE_CASTS(SVGPathElement, hasTagName(SVGNames::pathTag)); 126 DEFINE_NODE_TYPE_CASTS(SVGPathElement, hasTagName(SVGNames::pathTag));
128 127
129 } // namespace WebCore 128 } // namespace WebCore
130 129
131 #endif 130 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGLineElement.h ('k') | Source/core/svg/SVGPolyElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698