2 * THIS FILE WAS AUTOMATICALLY GENERATED, DO NOT EDIT.
4 * This file was generated by the dom/make_names.pl script.
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
17 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
18 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
21 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
24 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
25 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 #include "JSSVGElementWrapperFactory.h"
35 #include "JSSVGAElement.h"
36 #include "JSSVGAltGlyphElement.h"
37 #include "JSSVGAltGlyphDefElement.h"
38 #include "JSSVGAltGlyphItemElement.h"
39 #include "JSSVGAnimateElement.h"
40 #include "JSSVGAnimateColorElement.h"
41 #include "JSSVGAnimateTransformElement.h"
42 #include "JSSVGCircleElement.h"
43 #include "JSSVGClipPathElement.h"
44 #include "JSSVGCursorElement.h"
45 #include "JSSVGDefsElement.h"
46 #include "JSSVGDescElement.h"
47 #include "JSSVGEllipseElement.h"
48 #include "JSSVGFEBlendElement.h"
49 #include "JSSVGFEColorMatrixElement.h"
50 #include "JSSVGFEComponentTransferElement.h"
51 #include "JSSVGFECompositeElement.h"
52 #include "JSSVGFEConvolveMatrixElement.h"
53 #include "JSSVGFEDiffuseLightingElement.h"
54 #include "JSSVGFEDisplacementMapElement.h"
55 #include "JSSVGFEDistantLightElement.h"
56 #include "JSSVGFEDropShadowElement.h"
57 #include "JSSVGFEFloodElement.h"
58 #include "JSSVGFEFuncAElement.h"
59 #include "JSSVGFEFuncBElement.h"
60 #include "JSSVGFEFuncGElement.h"
61 #include "JSSVGFEFuncRElement.h"
62 #include "JSSVGFEGaussianBlurElement.h"
63 #include "JSSVGFEImageElement.h"
64 #include "JSSVGFEMergeElement.h"
65 #include "JSSVGFEMergeNodeElement.h"
66 #include "JSSVGFEMorphologyElement.h"
67 #include "JSSVGFEOffsetElement.h"
68 #include "JSSVGFEPointLightElement.h"
69 #include "JSSVGFESpecularLightingElement.h"
70 #include "JSSVGFESpotLightElement.h"
71 #include "JSSVGFETileElement.h"
72 #include "JSSVGFETurbulenceElement.h"
73 #include "JSSVGFilterElement.h"
74 #include "JSSVGFontElement.h"
75 #include "JSSVGFontFaceElement.h"
76 #include "JSSVGFontFaceFormatElement.h"
77 #include "JSSVGFontFaceNameElement.h"
78 #include "JSSVGFontFaceSrcElement.h"
79 #include "JSSVGFontFaceUriElement.h"
80 #include "JSSVGForeignObjectElement.h"
81 #include "JSSVGGElement.h"
82 #include "JSSVGGlyphElement.h"
83 #include "JSSVGGlyphRefElement.h"
84 #include "JSSVGImageElement.h"
85 #include "JSSVGLineElement.h"
86 #include "JSSVGLinearGradientElement.h"
87 #include "JSSVGMarkerElement.h"
88 #include "JSSVGMaskElement.h"
89 #include "JSSVGMetadataElement.h"
90 #include "JSSVGMissingGlyphElement.h"
91 #include "JSSVGPathElement.h"
92 #include "JSSVGPatternElement.h"
93 #include "JSSVGPolygonElement.h"
94 #include "JSSVGPolylineElement.h"
95 #include "JSSVGRadialGradientElement.h"
96 #include "JSSVGRectElement.h"
97 #include "JSSVGScriptElement.h"
98 #include "JSSVGSetElement.h"
99 #include "JSSVGStopElement.h"
100 #include "JSSVGStyleElement.h"
101 #include "JSSVGSVGElement.h"
102 #include "JSSVGSwitchElement.h"
103 #include "JSSVGSymbolElement.h"
104 #include "JSSVGTextElement.h"
105 #include "JSSVGTextPathElement.h"
106 #include "JSSVGTitleElement.h"
107 #include "JSSVGTRefElement.h"
108 #include "JSSVGTSpanElement.h"
109 #include "JSSVGUseElement.h"
110 #include "JSSVGViewElement.h"
111 #include "JSSVGVKernElement.h"
112 #include "JSSVGElement.h"
114 #include "SVGNames.h"
116 #include "SVGAElement.h"
117 #include "SVGAltGlyphElement.h"
118 #include "SVGAltGlyphDefElement.h"
119 #include "SVGAltGlyphItemElement.h"
120 #include "SVGAnimateElement.h"
121 #include "SVGAnimateColorElement.h"
122 #include "SVGAnimateMotionElement.h"
123 #include "SVGAnimateTransformElement.h"
124 #include "SVGCircleElement.h"
125 #include "SVGClipPathElement.h"
126 #include "SVGCursorElement.h"
127 #include "SVGDefsElement.h"
128 #include "SVGDescElement.h"
129 #include "SVGEllipseElement.h"
130 #include "SVGFEBlendElement.h"
131 #include "SVGFEColorMatrixElement.h"
132 #include "SVGFEComponentTransferElement.h"
133 #include "SVGFECompositeElement.h"
134 #include "SVGFEConvolveMatrixElement.h"
135 #include "SVGFEDiffuseLightingElement.h"
136 #include "SVGFEDisplacementMapElement.h"
137 #include "SVGFEDistantLightElement.h"
138 #include "SVGFEDropShadowElement.h"
139 #include "SVGFEFloodElement.h"
140 #include "SVGFEFuncAElement.h"
141 #include "SVGFEFuncBElement.h"
142 #include "SVGFEFuncGElement.h"
143 #include "SVGFEFuncRElement.h"
144 #include "SVGFEGaussianBlurElement.h"
145 #include "SVGFEImageElement.h"
146 #include "SVGFEMergeElement.h"
147 #include "SVGFEMergeNodeElement.h"
148 #include "SVGFEMorphologyElement.h"
149 #include "SVGFEOffsetElement.h"
150 #include "SVGFEPointLightElement.h"
151 #include "SVGFESpecularLightingElement.h"
152 #include "SVGFESpotLightElement.h"
153 #include "SVGFETileElement.h"
154 #include "SVGFETurbulenceElement.h"
155 #include "SVGFilterElement.h"
156 #include "SVGFontElement.h"
157 #include "SVGFontFaceElement.h"
158 #include "SVGFontFaceFormatElement.h"
159 #include "SVGFontFaceNameElement.h"
160 #include "SVGFontFaceSrcElement.h"
161 #include "SVGFontFaceUriElement.h"
162 #include "SVGForeignObjectElement.h"
163 #include "SVGGElement.h"
164 #include "SVGGlyphElement.h"
165 #include "SVGGlyphRefElement.h"
166 #include "SVGHKernElement.h"
167 #include "SVGImageElement.h"
168 #include "SVGLineElement.h"
169 #include "SVGLinearGradientElement.h"
170 #include "SVGMarkerElement.h"
171 #include "SVGMaskElement.h"
172 #include "SVGMetadataElement.h"
173 #include "SVGMissingGlyphElement.h"
174 #include "SVGMPathElement.h"
175 #include "SVGPathElement.h"
176 #include "SVGPatternElement.h"
177 #include "SVGPolygonElement.h"
178 #include "SVGPolylineElement.h"
179 #include "SVGRadialGradientElement.h"
180 #include "SVGRectElement.h"
181 #include "SVGScriptElement.h"
182 #include "SVGSetElement.h"
183 #include "SVGStopElement.h"
184 #include "SVGStyleElement.h"
185 #include "SVGSVGElement.h"
186 #include "SVGSwitchElement.h"
187 #include "SVGSymbolElement.h"
188 #include "SVGTextElement.h"
189 #include "SVGTextPathElement.h"
190 #include "SVGTitleElement.h"
191 #include "SVGTRefElement.h"
192 #include "SVGTSpanElement.h"
193 #include "SVGUseElement.h"
194 #include "SVGViewElement.h"
195 #include "SVGVKernElement.h"
196 #include "SVGElement.h"
198 #include <wtf/StdLibExtras.h>
201 #include "Document.h"
202 #include "Settings.h"
209 using namespace SVGNames;
211 typedef JSDOMWrapper* (*CreateSVGElementWrapperFunction)(ExecState*, JSDOMGlobalObject*, PassRefPtr<SVGElement>);
213 static JSDOMWrapper* createSVGAElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
215 return CREATE_DOM_WRAPPER(exec, globalObject, SVGAElement, element.get());
218 static JSDOMWrapper* createSVGAltGlyphElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
220 return CREATE_DOM_WRAPPER(exec, globalObject, SVGAltGlyphElement, element.get());
223 static JSDOMWrapper* createSVGAltGlyphDefElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
225 return CREATE_DOM_WRAPPER(exec, globalObject, SVGAltGlyphDefElement, element.get());
228 static JSDOMWrapper* createSVGAltGlyphItemElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
230 return CREATE_DOM_WRAPPER(exec, globalObject, SVGAltGlyphItemElement, element.get());
233 static JSDOMWrapper* createSVGAnimateElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
235 return CREATE_DOM_WRAPPER(exec, globalObject, SVGAnimateElement, element.get());
238 static JSDOMWrapper* createSVGAnimateColorElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
240 return CREATE_DOM_WRAPPER(exec, globalObject, SVGAnimateColorElement, element.get());
243 static JSDOMWrapper* createSVGAnimateTransformElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
245 return CREATE_DOM_WRAPPER(exec, globalObject, SVGAnimateTransformElement, element.get());
248 static JSDOMWrapper* createSVGCircleElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
250 return CREATE_DOM_WRAPPER(exec, globalObject, SVGCircleElement, element.get());
253 static JSDOMWrapper* createSVGClipPathElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
255 return CREATE_DOM_WRAPPER(exec, globalObject, SVGClipPathElement, element.get());
258 static JSDOMWrapper* createSVGCursorElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
260 return CREATE_DOM_WRAPPER(exec, globalObject, SVGCursorElement, element.get());
263 static JSDOMWrapper* createSVGDefsElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
265 return CREATE_DOM_WRAPPER(exec, globalObject, SVGDefsElement, element.get());
268 static JSDOMWrapper* createSVGDescElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
270 return CREATE_DOM_WRAPPER(exec, globalObject, SVGDescElement, element.get());
273 static JSDOMWrapper* createSVGEllipseElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
275 return CREATE_DOM_WRAPPER(exec, globalObject, SVGEllipseElement, element.get());
278 static JSDOMWrapper* createSVGFEBlendElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
280 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFEBlendElement, element.get());
283 static JSDOMWrapper* createSVGFEColorMatrixElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
285 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFEColorMatrixElement, element.get());
288 static JSDOMWrapper* createSVGFEComponentTransferElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
290 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFEComponentTransferElement, element.get());
293 static JSDOMWrapper* createSVGFECompositeElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
295 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFECompositeElement, element.get());
298 static JSDOMWrapper* createSVGFEConvolveMatrixElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
300 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFEConvolveMatrixElement, element.get());
303 static JSDOMWrapper* createSVGFEDiffuseLightingElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
305 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFEDiffuseLightingElement, element.get());
308 static JSDOMWrapper* createSVGFEDisplacementMapElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
310 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFEDisplacementMapElement, element.get());
313 static JSDOMWrapper* createSVGFEDistantLightElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
315 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFEDistantLightElement, element.get());
318 static JSDOMWrapper* createSVGFEDropShadowElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
320 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFEDropShadowElement, element.get());
323 static JSDOMWrapper* createSVGFEFloodElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
325 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFEFloodElement, element.get());
328 static JSDOMWrapper* createSVGFEFuncAElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
330 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFEFuncAElement, element.get());
333 static JSDOMWrapper* createSVGFEFuncBElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
335 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFEFuncBElement, element.get());
338 static JSDOMWrapper* createSVGFEFuncGElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
340 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFEFuncGElement, element.get());
343 static JSDOMWrapper* createSVGFEFuncRElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
345 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFEFuncRElement, element.get());
348 static JSDOMWrapper* createSVGFEGaussianBlurElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
350 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFEGaussianBlurElement, element.get());
353 static JSDOMWrapper* createSVGFEImageElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
355 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFEImageElement, element.get());
358 static JSDOMWrapper* createSVGFEMergeElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
360 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFEMergeElement, element.get());
363 static JSDOMWrapper* createSVGFEMergeNodeElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
365 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFEMergeNodeElement, element.get());
368 static JSDOMWrapper* createSVGFEMorphologyElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
370 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFEMorphologyElement, element.get());
373 static JSDOMWrapper* createSVGFEOffsetElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
375 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFEOffsetElement, element.get());
378 static JSDOMWrapper* createSVGFEPointLightElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
380 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFEPointLightElement, element.get());
383 static JSDOMWrapper* createSVGFESpecularLightingElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
385 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFESpecularLightingElement, element.get());
388 static JSDOMWrapper* createSVGFESpotLightElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
390 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFESpotLightElement, element.get());
393 static JSDOMWrapper* createSVGFETileElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
395 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFETileElement, element.get());
398 static JSDOMWrapper* createSVGFETurbulenceElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
400 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFETurbulenceElement, element.get());
403 static JSDOMWrapper* createSVGFilterElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
405 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFilterElement, element.get());
408 static JSDOMWrapper* createSVGFontElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
410 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFontElement, element.get());
413 static JSDOMWrapper* createSVGFontFaceElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
415 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFontFaceElement, element.get());
418 static JSDOMWrapper* createSVGFontFaceFormatElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
420 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFontFaceFormatElement, element.get());
423 static JSDOMWrapper* createSVGFontFaceNameElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
425 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFontFaceNameElement, element.get());
428 static JSDOMWrapper* createSVGFontFaceSrcElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
430 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFontFaceSrcElement, element.get());
433 static JSDOMWrapper* createSVGFontFaceUriElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
435 return CREATE_DOM_WRAPPER(exec, globalObject, SVGFontFaceUriElement, element.get());
438 static JSDOMWrapper* createSVGForeignObjectElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
440 return CREATE_DOM_WRAPPER(exec, globalObject, SVGForeignObjectElement, element.get());
443 static JSDOMWrapper* createSVGGElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
445 return CREATE_DOM_WRAPPER(exec, globalObject, SVGGElement, element.get());
448 static JSDOMWrapper* createSVGGlyphElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
450 return CREATE_DOM_WRAPPER(exec, globalObject, SVGGlyphElement, element.get());
453 static JSDOMWrapper* createSVGGlyphRefElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
455 return CREATE_DOM_WRAPPER(exec, globalObject, SVGGlyphRefElement, element.get());
458 static JSDOMWrapper* createSVGImageElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
460 return CREATE_DOM_WRAPPER(exec, globalObject, SVGImageElement, element.get());
463 static JSDOMWrapper* createSVGLineElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
465 return CREATE_DOM_WRAPPER(exec, globalObject, SVGLineElement, element.get());
468 static JSDOMWrapper* createSVGLinearGradientElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
470 return CREATE_DOM_WRAPPER(exec, globalObject, SVGLinearGradientElement, element.get());
473 static JSDOMWrapper* createSVGMarkerElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
475 return CREATE_DOM_WRAPPER(exec, globalObject, SVGMarkerElement, element.get());
478 static JSDOMWrapper* createSVGMaskElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
480 return CREATE_DOM_WRAPPER(exec, globalObject, SVGMaskElement, element.get());
483 static JSDOMWrapper* createSVGMetadataElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
485 return CREATE_DOM_WRAPPER(exec, globalObject, SVGMetadataElement, element.get());
488 static JSDOMWrapper* createSVGMissingGlyphElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
490 return CREATE_DOM_WRAPPER(exec, globalObject, SVGMissingGlyphElement, element.get());
493 static JSDOMWrapper* createSVGPathElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
495 return CREATE_DOM_WRAPPER(exec, globalObject, SVGPathElement, element.get());
498 static JSDOMWrapper* createSVGPatternElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
500 return CREATE_DOM_WRAPPER(exec, globalObject, SVGPatternElement, element.get());
503 static JSDOMWrapper* createSVGPolygonElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
505 return CREATE_DOM_WRAPPER(exec, globalObject, SVGPolygonElement, element.get());
508 static JSDOMWrapper* createSVGPolylineElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
510 return CREATE_DOM_WRAPPER(exec, globalObject, SVGPolylineElement, element.get());
513 static JSDOMWrapper* createSVGRadialGradientElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
515 return CREATE_DOM_WRAPPER(exec, globalObject, SVGRadialGradientElement, element.get());
518 static JSDOMWrapper* createSVGRectElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
520 return CREATE_DOM_WRAPPER(exec, globalObject, SVGRectElement, element.get());
523 static JSDOMWrapper* createSVGScriptElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
525 return CREATE_DOM_WRAPPER(exec, globalObject, SVGScriptElement, element.get());
528 static JSDOMWrapper* createSVGSetElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
530 return CREATE_DOM_WRAPPER(exec, globalObject, SVGSetElement, element.get());
533 static JSDOMWrapper* createSVGStopElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
535 return CREATE_DOM_WRAPPER(exec, globalObject, SVGStopElement, element.get());
538 static JSDOMWrapper* createSVGStyleElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
540 return CREATE_DOM_WRAPPER(exec, globalObject, SVGStyleElement, element.get());
543 static JSDOMWrapper* createSVGSVGElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
545 return CREATE_DOM_WRAPPER(exec, globalObject, SVGSVGElement, element.get());
548 static JSDOMWrapper* createSVGSwitchElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
550 return CREATE_DOM_WRAPPER(exec, globalObject, SVGSwitchElement, element.get());
553 static JSDOMWrapper* createSVGSymbolElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
555 return CREATE_DOM_WRAPPER(exec, globalObject, SVGSymbolElement, element.get());
558 static JSDOMWrapper* createSVGTextElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
560 return CREATE_DOM_WRAPPER(exec, globalObject, SVGTextElement, element.get());
563 static JSDOMWrapper* createSVGTextPathElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
565 return CREATE_DOM_WRAPPER(exec, globalObject, SVGTextPathElement, element.get());
568 static JSDOMWrapper* createSVGTitleElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
570 return CREATE_DOM_WRAPPER(exec, globalObject, SVGTitleElement, element.get());
573 static JSDOMWrapper* createSVGTRefElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
575 return CREATE_DOM_WRAPPER(exec, globalObject, SVGTRefElement, element.get());
578 static JSDOMWrapper* createSVGTSpanElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
580 return CREATE_DOM_WRAPPER(exec, globalObject, SVGTSpanElement, element.get());
583 static JSDOMWrapper* createSVGUseElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
585 return CREATE_DOM_WRAPPER(exec, globalObject, SVGUseElement, element.get());
588 static JSDOMWrapper* createSVGViewElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
590 return CREATE_DOM_WRAPPER(exec, globalObject, SVGViewElement, element.get());
593 static JSDOMWrapper* createSVGVKernElementWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
595 return CREATE_DOM_WRAPPER(exec, globalObject, SVGVKernElement, element.get());
598 JSDOMWrapper* createJSSVGWrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> element)
600 typedef HashMap<WTF::AtomicStringImpl*, CreateSVGElementWrapperFunction> FunctionMap;
601 DEFINE_STATIC_LOCAL(FunctionMap, map, ());
603 map.set(aTag.localName().impl(), createSVGAElementWrapper);
604 map.set(altGlyphTag.localName().impl(), createSVGAltGlyphElementWrapper);
605 map.set(altGlyphDefTag.localName().impl(), createSVGAltGlyphDefElementWrapper);
606 map.set(altGlyphItemTag.localName().impl(), createSVGAltGlyphItemElementWrapper);
607 map.set(animateTag.localName().impl(), createSVGAnimateElementWrapper);
608 map.set(animateColorTag.localName().impl(), createSVGAnimateColorElementWrapper);
609 map.set(animateTransformTag.localName().impl(), createSVGAnimateTransformElementWrapper);
610 map.set(circleTag.localName().impl(), createSVGCircleElementWrapper);
611 map.set(clipPathTag.localName().impl(), createSVGClipPathElementWrapper);
612 map.set(cursorTag.localName().impl(), createSVGCursorElementWrapper);
613 map.set(defsTag.localName().impl(), createSVGDefsElementWrapper);
614 map.set(descTag.localName().impl(), createSVGDescElementWrapper);
615 map.set(ellipseTag.localName().impl(), createSVGEllipseElementWrapper);
616 map.set(feBlendTag.localName().impl(), createSVGFEBlendElementWrapper);
617 map.set(feColorMatrixTag.localName().impl(), createSVGFEColorMatrixElementWrapper);
618 map.set(feComponentTransferTag.localName().impl(), createSVGFEComponentTransferElementWrapper);
619 map.set(feCompositeTag.localName().impl(), createSVGFECompositeElementWrapper);
620 map.set(feConvolveMatrixTag.localName().impl(), createSVGFEConvolveMatrixElementWrapper);
621 map.set(feDiffuseLightingTag.localName().impl(), createSVGFEDiffuseLightingElementWrapper);
622 map.set(feDisplacementMapTag.localName().impl(), createSVGFEDisplacementMapElementWrapper);
623 map.set(feDistantLightTag.localName().impl(), createSVGFEDistantLightElementWrapper);
624 map.set(feDropShadowTag.localName().impl(), createSVGFEDropShadowElementWrapper);
625 map.set(feFloodTag.localName().impl(), createSVGFEFloodElementWrapper);
626 map.set(feFuncATag.localName().impl(), createSVGFEFuncAElementWrapper);
627 map.set(feFuncBTag.localName().impl(), createSVGFEFuncBElementWrapper);
628 map.set(feFuncGTag.localName().impl(), createSVGFEFuncGElementWrapper);
629 map.set(feFuncRTag.localName().impl(), createSVGFEFuncRElementWrapper);
630 map.set(feGaussianBlurTag.localName().impl(), createSVGFEGaussianBlurElementWrapper);
631 map.set(feImageTag.localName().impl(), createSVGFEImageElementWrapper);
632 map.set(feMergeTag.localName().impl(), createSVGFEMergeElementWrapper);
633 map.set(feMergeNodeTag.localName().impl(), createSVGFEMergeNodeElementWrapper);
634 map.set(feMorphologyTag.localName().impl(), createSVGFEMorphologyElementWrapper);
635 map.set(feOffsetTag.localName().impl(), createSVGFEOffsetElementWrapper);
636 map.set(fePointLightTag.localName().impl(), createSVGFEPointLightElementWrapper);
637 map.set(feSpecularLightingTag.localName().impl(), createSVGFESpecularLightingElementWrapper);
638 map.set(feSpotLightTag.localName().impl(), createSVGFESpotLightElementWrapper);
639 map.set(feTileTag.localName().impl(), createSVGFETileElementWrapper);
640 map.set(feTurbulenceTag.localName().impl(), createSVGFETurbulenceElementWrapper);
641 map.set(filterTag.localName().impl(), createSVGFilterElementWrapper);
642 map.set(fontTag.localName().impl(), createSVGFontElementWrapper);
643 map.set(font_faceTag.localName().impl(), createSVGFontFaceElementWrapper);
644 map.set(font_face_formatTag.localName().impl(), createSVGFontFaceFormatElementWrapper);
645 map.set(font_face_nameTag.localName().impl(), createSVGFontFaceNameElementWrapper);
646 map.set(font_face_srcTag.localName().impl(), createSVGFontFaceSrcElementWrapper);
647 map.set(font_face_uriTag.localName().impl(), createSVGFontFaceUriElementWrapper);
648 map.set(foreignObjectTag.localName().impl(), createSVGForeignObjectElementWrapper);
649 map.set(gTag.localName().impl(), createSVGGElementWrapper);
650 map.set(glyphTag.localName().impl(), createSVGGlyphElementWrapper);
651 map.set(glyphRefTag.localName().impl(), createSVGGlyphRefElementWrapper);
652 map.set(imageTag.localName().impl(), createSVGImageElementWrapper);
653 map.set(lineTag.localName().impl(), createSVGLineElementWrapper);
654 map.set(linearGradientTag.localName().impl(), createSVGLinearGradientElementWrapper);
655 map.set(markerTag.localName().impl(), createSVGMarkerElementWrapper);
656 map.set(maskTag.localName().impl(), createSVGMaskElementWrapper);
657 map.set(metadataTag.localName().impl(), createSVGMetadataElementWrapper);
658 map.set(missing_glyphTag.localName().impl(), createSVGMissingGlyphElementWrapper);
659 map.set(pathTag.localName().impl(), createSVGPathElementWrapper);
660 map.set(patternTag.localName().impl(), createSVGPatternElementWrapper);
661 map.set(polygonTag.localName().impl(), createSVGPolygonElementWrapper);
662 map.set(polylineTag.localName().impl(), createSVGPolylineElementWrapper);
663 map.set(radialGradientTag.localName().impl(), createSVGRadialGradientElementWrapper);
664 map.set(rectTag.localName().impl(), createSVGRectElementWrapper);
665 map.set(scriptTag.localName().impl(), createSVGScriptElementWrapper);
666 map.set(setTag.localName().impl(), createSVGSetElementWrapper);
667 map.set(stopTag.localName().impl(), createSVGStopElementWrapper);
668 map.set(styleTag.localName().impl(), createSVGStyleElementWrapper);
669 map.set(svgTag.localName().impl(), createSVGSVGElementWrapper);
670 map.set(switchTag.localName().impl(), createSVGSwitchElementWrapper);
671 map.set(symbolTag.localName().impl(), createSVGSymbolElementWrapper);
672 map.set(textTag.localName().impl(), createSVGTextElementWrapper);
673 map.set(textPathTag.localName().impl(), createSVGTextPathElementWrapper);
674 map.set(titleTag.localName().impl(), createSVGTitleElementWrapper);
675 map.set(trefTag.localName().impl(), createSVGTRefElementWrapper);
676 map.set(tspanTag.localName().impl(), createSVGTSpanElementWrapper);
677 map.set(useTag.localName().impl(), createSVGUseElementWrapper);
678 map.set(viewTag.localName().impl(), createSVGViewElementWrapper);
679 map.set(vkernTag.localName().impl(), createSVGVKernElementWrapper);
681 CreateSVGElementWrapperFunction createWrapperFunction = map.get(element->localName().impl());
682 if (createWrapperFunction)
683 return createWrapperFunction(exec, globalObject, element);
684 return CREATE_DOM_WRAPPER(exec, globalObject, SVGElement, element.get());