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

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

Issue 24527003: [oilpan] Implement accept methods to trace the class hierarchy of SVGElement and all sub-classes. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2010 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 Element* getElementById(const AtomicString&) const; 131 Element* getElementById(const AtomicString&) const;
132 132
133 bool widthAttributeEstablishesViewport() const; 133 bool widthAttributeEstablishesViewport() const;
134 bool heightAttributeEstablishesViewport() const; 134 bool heightAttributeEstablishesViewport() const;
135 135
136 SVGZoomAndPanType zoomAndPan() const { return m_zoomAndPan; } 136 SVGZoomAndPanType zoomAndPan() const { return m_zoomAndPan; }
137 void setZoomAndPan(unsigned short zoomAndPan) { m_zoomAndPan = SVGZoomAndPan ::parseFromNumber(zoomAndPan); } 137 void setZoomAndPan(unsigned short zoomAndPan) { m_zoomAndPan = SVGZoomAndPan ::parseFromNumber(zoomAndPan); }
138 138
139 bool hasEmptyViewBox() const { return viewBoxIsValid() && viewBox().isEmpty( ); } 139 bool hasEmptyViewBox() const { return viewBoxIsValid() && viewBox().isEmpty( ); }
140 140
141 virtual void accept(Visitor* visitor) const OVERRIDE { SVGStyledTransformabl eElement::accept(visitor); }
142
141 private: 143 private:
142 SVGSVGElement(const QualifiedName&, const Handle<Document>&); 144 SVGSVGElement(const QualifiedName&, const Handle<Document>&);
143 virtual ~SVGSVGElement(); 145 virtual ~SVGSVGElement();
144 146
145 virtual bool isSVGSVGElement() const OVERRIDE { return true; } 147 virtual bool isSVGSVGElement() const OVERRIDE { return true; }
146 148
147 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 149 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
148 150
149 virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE; 151 virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE;
150 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); 152 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 200
199 inline SVGSVGElement* toSVGSVGElement(const Handle<Node>& node) 201 inline SVGSVGElement* toSVGSVGElement(const Handle<Node>& node)
200 { 202 {
201 return toSVGSVGElement(node.raw()); 203 return toSVGSVGElement(node.raw());
202 } 204 }
203 205
204 } // namespace WebCore 206 } // namespace WebCore
205 207
206 #endif // ENABLE(SVG) 208 #endif // ENABLE(SVG)
207 #endif 209 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698