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

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

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 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
« no previous file with comments | « Source/core/svg/SVGMPathElement.cpp ('k') | Source/core/svg/SVGMarkerElement.cpp » ('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, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 SVG_MARKERUNITS_USERSPACEONUSE = SVGMarkerUnitsUserSpaceOnUse, 104 SVG_MARKERUNITS_USERSPACEONUSE = SVGMarkerUnitsUserSpaceOnUse,
105 SVG_MARKERUNITS_STROKEWIDTH = SVGMarkerUnitsStrokeWidth 105 SVG_MARKERUNITS_STROKEWIDTH = SVGMarkerUnitsStrokeWidth
106 }; 106 };
107 107
108 enum { 108 enum {
109 SVG_MARKER_ORIENT_UNKNOWN = SVGMarkerOrientUnknown, 109 SVG_MARKER_ORIENT_UNKNOWN = SVGMarkerOrientUnknown,
110 SVG_MARKER_ORIENT_AUTO = SVGMarkerOrientAuto, 110 SVG_MARKER_ORIENT_AUTO = SVGMarkerOrientAuto,
111 SVG_MARKER_ORIENT_ANGLE = SVGMarkerOrientAngle 111 SVG_MARKER_ORIENT_ANGLE = SVGMarkerOrientAngle
112 }; 112 };
113 113
114 static PassRefPtr<SVGMarkerElement> create(const QualifiedName&, Document*); 114 static PassRefPtr<SVGMarkerElement> create(const QualifiedName&, Document&);
115 115
116 AffineTransform viewBoxToViewTransform(float viewWidth, float viewHeight) co nst; 116 AffineTransform viewBoxToViewTransform(float viewWidth, float viewHeight) co nst;
117 117
118 void setOrientToAuto(); 118 void setOrientToAuto();
119 void setOrientToAngle(const SVGAngle&); 119 void setOrientToAngle(const SVGAngle&);
120 120
121 static const SVGPropertyInfo* orientTypePropertyInfo(); 121 static const SVGPropertyInfo* orientTypePropertyInfo();
122 122
123 private: 123 private:
124 SVGMarkerElement(const QualifiedName&, Document*); 124 SVGMarkerElement(const QualifiedName&, Document&);
125 125
126 virtual bool needsPendingResourceHandling() const { return false; } 126 virtual bool needsPendingResourceHandling() const { return false; }
127 127
128 bool isSupportedAttribute(const QualifiedName&); 128 bool isSupportedAttribute(const QualifiedName&);
129 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 129 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
130 virtual void svgAttributeChanged(const QualifiedName&); 130 virtual void svgAttributeChanged(const QualifiedName&);
131 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0); 131 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0);
132 132
133 virtual RenderObject* createRenderer(RenderStyle*); 133 virtual RenderObject* createRenderer(RenderStyle*);
134 virtual bool rendererIsNeeded(const NodeRenderingContext&) { return true; } 134 virtual bool rendererIsNeeded(const NodeRenderingContext&) { return true; }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 inline SVGMarkerElement* toSVGMarkerElement(Node* node) 168 inline SVGMarkerElement* toSVGMarkerElement(Node* node)
169 { 169 {
170 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::markerT ag)); 170 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::markerT ag));
171 return static_cast<SVGMarkerElement*>(node); 171 return static_cast<SVGMarkerElement*>(node);
172 } 172 }
173 173
174 } 174 }
175 175
176 #endif 176 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGMPathElement.cpp ('k') | Source/core/svg/SVGMarkerElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698