Updated WebKit from /home/shausman/src/webkit/trunk to origin/qtwebkit-4.5 ( bd7262be...
[qt:qt-l10n-hu.git] / src / 3rdparty / webkit / WebCore / generated / JSSVGPathSegMovetoAbs.cpp
1 /*
2     This file is part of the WebKit open source project.
3     This file has been generated by generate-bindings.pl. DO NOT MODIFY!
4
5     This library is free software; you can redistribute it and/or
6     modify it under the terms of the GNU Library General Public
7     License as published by the Free Software Foundation; either
8     version 2 of the License, or (at your option) any later version.
9
10     This library is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13     Library General Public License for more details.
14
15     You should have received a copy of the GNU Library General Public License
16     along with this library; see the file COPYING.LIB.  If not, write to
17     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18     Boston, MA 02110-1301, USA.
19 */
20
21 #include "config.h"
22
23
24 #if ENABLE(SVG)
25
26 #include "SVGElement.h"
27 #include "JSSVGPathSegMovetoAbs.h"
28
29 #include <wtf/GetPtr.h>
30
31 #include "SVGPathSegMoveto.h"
32
33 #include <runtime/JSNumberCell.h>
34
35 using namespace JSC;
36
37 namespace WebCore {
38
39 ASSERT_CLASS_FITS_IN_CELL(JSSVGPathSegMovetoAbs)
40
41 /* Hash table */
42
43 static const HashTableValue JSSVGPathSegMovetoAbsTableValues[3] =
44 {
45     { "x", DontDelete, (intptr_t)jsSVGPathSegMovetoAbsX, (intptr_t)setJSSVGPathSegMovetoAbsX },
46     { "y", DontDelete, (intptr_t)jsSVGPathSegMovetoAbsY, (intptr_t)setJSSVGPathSegMovetoAbsY },
47     { 0, 0, 0, 0 }
48 };
49
50 static const HashTable JSSVGPathSegMovetoAbsTable =
51 #if ENABLE(PERFECT_HASH_SIZE)
52     { 1, JSSVGPathSegMovetoAbsTableValues, 0 };
53 #else
54     { 4, 3, JSSVGPathSegMovetoAbsTableValues, 0 };
55 #endif
56
57 /* Hash table for prototype */
58
59 static const HashTableValue JSSVGPathSegMovetoAbsPrototypeTableValues[1] =
60 {
61     { 0, 0, 0, 0 }
62 };
63
64 static const HashTable JSSVGPathSegMovetoAbsPrototypeTable =
65 #if ENABLE(PERFECT_HASH_SIZE)
66     { 0, JSSVGPathSegMovetoAbsPrototypeTableValues, 0 };
67 #else
68     { 1, 0, JSSVGPathSegMovetoAbsPrototypeTableValues, 0 };
69 #endif
70
71 const ClassInfo JSSVGPathSegMovetoAbsPrototype::s_info = { "SVGPathSegMovetoAbsPrototype", 0, &JSSVGPathSegMovetoAbsPrototypeTable, 0 };
72
73 JSObject* JSSVGPathSegMovetoAbsPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
74 {
75     return getDOMPrototype<JSSVGPathSegMovetoAbs>(exec, globalObject);
76 }
77
78 const ClassInfo JSSVGPathSegMovetoAbs::s_info = { "SVGPathSegMovetoAbs", &JSSVGPathSeg::s_info, &JSSVGPathSegMovetoAbsTable, 0 };
79
80 JSSVGPathSegMovetoAbs::JSSVGPathSegMovetoAbs(PassRefPtr<Structure> structure, PassRefPtr<SVGPathSegMovetoAbs> impl, SVGElement* context)
81     : JSSVGPathSeg(structure, impl, context)
82 {
83 }
84
85 JSObject* JSSVGPathSegMovetoAbs::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
86 {
87     return new (exec) JSSVGPathSegMovetoAbsPrototype(JSSVGPathSegMovetoAbsPrototype::createStructure(JSSVGPathSegPrototype::self(exec, globalObject)));
88 }
89
90 bool JSSVGPathSegMovetoAbs::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
91 {
92     return getStaticValueSlot<JSSVGPathSegMovetoAbs, Base>(exec, &JSSVGPathSegMovetoAbsTable, this, propertyName, slot);
93 }
94
95 JSValuePtr jsSVGPathSegMovetoAbsX(ExecState* exec, const Identifier&, const PropertySlot& slot)
96 {
97     SVGPathSegMovetoAbs* imp = static_cast<SVGPathSegMovetoAbs*>(static_cast<JSSVGPathSegMovetoAbs*>(asObject(slot.slotBase()))->impl());
98     return jsNumber(exec, imp->x());
99 }
100
101 JSValuePtr jsSVGPathSegMovetoAbsY(ExecState* exec, const Identifier&, const PropertySlot& slot)
102 {
103     SVGPathSegMovetoAbs* imp = static_cast<SVGPathSegMovetoAbs*>(static_cast<JSSVGPathSegMovetoAbs*>(asObject(slot.slotBase()))->impl());
104     return jsNumber(exec, imp->y());
105 }
106
107 void JSSVGPathSegMovetoAbs::put(ExecState* exec, const Identifier& propertyName, JSValuePtr value, PutPropertySlot& slot)
108 {
109     lookupPut<JSSVGPathSegMovetoAbs, Base>(exec, propertyName, value, &JSSVGPathSegMovetoAbsTable, this, slot);
110 }
111
112 void setJSSVGPathSegMovetoAbsX(ExecState* exec, JSObject* thisObject, JSValuePtr value)
113 {
114     SVGPathSegMovetoAbs* imp = static_cast<SVGPathSegMovetoAbs*>(static_cast<JSSVGPathSegMovetoAbs*>(thisObject)->impl());
115     imp->setX(value->toFloat(exec));
116     if (static_cast<JSSVGPathSegMovetoAbs*>(thisObject)->context())
117         static_cast<JSSVGPathSegMovetoAbs*>(thisObject)->context()->svgAttributeChanged(static_cast<JSSVGPathSegMovetoAbs*>(thisObject)->impl()->associatedAttributeName());
118 }
119
120 void setJSSVGPathSegMovetoAbsY(ExecState* exec, JSObject* thisObject, JSValuePtr value)
121 {
122     SVGPathSegMovetoAbs* imp = static_cast<SVGPathSegMovetoAbs*>(static_cast<JSSVGPathSegMovetoAbs*>(thisObject)->impl());
123     imp->setY(value->toFloat(exec));
124     if (static_cast<JSSVGPathSegMovetoAbs*>(thisObject)->context())
125         static_cast<JSSVGPathSegMovetoAbs*>(thisObject)->context()->svgAttributeChanged(static_cast<JSSVGPathSegMovetoAbs*>(thisObject)->impl()->associatedAttributeName());
126 }
127
128
129 }
130
131 #endif // ENABLE(SVG)