~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/3rdparty/webkit/WebCore/generated/JSSVGPathSegArcRel.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
#include "config.h"
22
22
 
23
 
 
24
23
#if ENABLE(SVG)
25
24
 
26
 
#include "SVGElement.h"
27
25
#include "JSSVGPathSegArcRel.h"
28
26
 
29
 
#include <wtf/GetPtr.h>
30
 
 
31
27
#include "SVGPathSegArc.h"
32
 
 
33
28
#include <runtime/JSNumberCell.h>
 
29
#include <wtf/GetPtr.h>
34
30
 
35
31
using namespace JSC;
36
32
 
37
33
namespace WebCore {
38
34
 
39
 
ASSERT_CLASS_FITS_IN_CELL(JSSVGPathSegArcRel)
 
35
ASSERT_CLASS_FITS_IN_CELL(JSSVGPathSegArcRel);
40
36
 
41
37
/* Hash table */
42
38
 
52
48
    { 0, 0, 0, 0 }
53
49
};
54
50
 
55
 
static const HashTable JSSVGPathSegArcRelTable =
 
51
static JSC_CONST_HASHTABLE HashTable JSSVGPathSegArcRelTable =
56
52
#if ENABLE(PERFECT_HASH_SIZE)
57
53
    { 15, JSSVGPathSegArcRelTableValues, 0 };
58
54
#else
66
62
    { 0, 0, 0, 0 }
67
63
};
68
64
 
69
 
static const HashTable JSSVGPathSegArcRelPrototypeTable =
 
65
static JSC_CONST_HASHTABLE HashTable JSSVGPathSegArcRelPrototypeTable =
70
66
#if ENABLE(PERFECT_HASH_SIZE)
71
67
    { 0, JSSVGPathSegArcRelPrototypeTableValues, 0 };
72
68
#else
82
78
 
83
79
const ClassInfo JSSVGPathSegArcRel::s_info = { "SVGPathSegArcRel", &JSSVGPathSeg::s_info, &JSSVGPathSegArcRelTable, 0 };
84
80
 
85
 
JSSVGPathSegArcRel::JSSVGPathSegArcRel(PassRefPtr<Structure> structure, PassRefPtr<SVGPathSegArcRel> impl, SVGElement* context)
86
 
    : JSSVGPathSeg(structure, impl, context)
 
81
JSSVGPathSegArcRel::JSSVGPathSegArcRel(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGPathSegArcRel> impl, SVGElement* context)
 
82
    : JSSVGPathSeg(structure, globalObject, impl, context)
87
83
{
88
84
}
89
85
 
97
93
    return getStaticValueSlot<JSSVGPathSegArcRel, Base>(exec, &JSSVGPathSegArcRelTable, this, propertyName, slot);
98
94
}
99
95
 
100
 
JSValuePtr jsSVGPathSegArcRelX(ExecState* exec, const Identifier&, const PropertySlot& slot)
101
 
{
102
 
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(static_cast<JSSVGPathSegArcRel*>(asObject(slot.slotBase()))->impl());
 
96
bool JSSVGPathSegArcRel::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
 
97
{
 
98
    return getStaticValueDescriptor<JSSVGPathSegArcRel, Base>(exec, &JSSVGPathSegArcRelTable, this, propertyName, descriptor);
 
99
}
 
100
 
 
101
JSValue jsSVGPathSegArcRelX(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
102
{
 
103
    JSSVGPathSegArcRel* castedThis = static_cast<JSSVGPathSegArcRel*>(asObject(slot.slotBase()));
 
104
    UNUSED_PARAM(exec);
 
105
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(castedThis->impl());
103
106
    return jsNumber(exec, imp->x());
104
107
}
105
108
 
106
 
JSValuePtr jsSVGPathSegArcRelY(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
109
JSValue jsSVGPathSegArcRelY(ExecState* exec, const Identifier&, const PropertySlot& slot)
107
110
{
108
 
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(static_cast<JSSVGPathSegArcRel*>(asObject(slot.slotBase()))->impl());
 
111
    JSSVGPathSegArcRel* castedThis = static_cast<JSSVGPathSegArcRel*>(asObject(slot.slotBase()));
 
112
    UNUSED_PARAM(exec);
 
113
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(castedThis->impl());
109
114
    return jsNumber(exec, imp->y());
110
115
}
111
116
 
112
 
JSValuePtr jsSVGPathSegArcRelR1(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
117
JSValue jsSVGPathSegArcRelR1(ExecState* exec, const Identifier&, const PropertySlot& slot)
113
118
{
114
 
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(static_cast<JSSVGPathSegArcRel*>(asObject(slot.slotBase()))->impl());
 
119
    JSSVGPathSegArcRel* castedThis = static_cast<JSSVGPathSegArcRel*>(asObject(slot.slotBase()));
 
120
    UNUSED_PARAM(exec);
 
121
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(castedThis->impl());
115
122
    return jsNumber(exec, imp->r1());
116
123
}
117
124
 
118
 
JSValuePtr jsSVGPathSegArcRelR2(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
125
JSValue jsSVGPathSegArcRelR2(ExecState* exec, const Identifier&, const PropertySlot& slot)
119
126
{
120
 
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(static_cast<JSSVGPathSegArcRel*>(asObject(slot.slotBase()))->impl());
 
127
    JSSVGPathSegArcRel* castedThis = static_cast<JSSVGPathSegArcRel*>(asObject(slot.slotBase()));
 
128
    UNUSED_PARAM(exec);
 
129
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(castedThis->impl());
121
130
    return jsNumber(exec, imp->r2());
122
131
}
123
132
 
124
 
JSValuePtr jsSVGPathSegArcRelAngle(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
133
JSValue jsSVGPathSegArcRelAngle(ExecState* exec, const Identifier&, const PropertySlot& slot)
125
134
{
126
 
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(static_cast<JSSVGPathSegArcRel*>(asObject(slot.slotBase()))->impl());
 
135
    JSSVGPathSegArcRel* castedThis = static_cast<JSSVGPathSegArcRel*>(asObject(slot.slotBase()));
 
136
    UNUSED_PARAM(exec);
 
137
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(castedThis->impl());
127
138
    return jsNumber(exec, imp->angle());
128
139
}
129
140
 
130
 
JSValuePtr jsSVGPathSegArcRelLargeArcFlag(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
141
JSValue jsSVGPathSegArcRelLargeArcFlag(ExecState* exec, const Identifier&, const PropertySlot& slot)
131
142
{
132
 
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(static_cast<JSSVGPathSegArcRel*>(asObject(slot.slotBase()))->impl());
 
143
    JSSVGPathSegArcRel* castedThis = static_cast<JSSVGPathSegArcRel*>(asObject(slot.slotBase()));
 
144
    UNUSED_PARAM(exec);
 
145
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(castedThis->impl());
133
146
    return jsBoolean(imp->largeArcFlag());
134
147
}
135
148
 
136
 
JSValuePtr jsSVGPathSegArcRelSweepFlag(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
149
JSValue jsSVGPathSegArcRelSweepFlag(ExecState* exec, const Identifier&, const PropertySlot& slot)
137
150
{
138
 
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(static_cast<JSSVGPathSegArcRel*>(asObject(slot.slotBase()))->impl());
 
151
    JSSVGPathSegArcRel* castedThis = static_cast<JSSVGPathSegArcRel*>(asObject(slot.slotBase()));
 
152
    UNUSED_PARAM(exec);
 
153
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(castedThis->impl());
139
154
    return jsBoolean(imp->sweepFlag());
140
155
}
141
156
 
142
 
void JSSVGPathSegArcRel::put(ExecState* exec, const Identifier& propertyName, JSValuePtr value, PutPropertySlot& slot)
 
157
void JSSVGPathSegArcRel::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
143
158
{
144
159
    lookupPut<JSSVGPathSegArcRel, Base>(exec, propertyName, value, &JSSVGPathSegArcRelTable, this, slot);
145
160
}
146
161
 
147
 
void setJSSVGPathSegArcRelX(ExecState* exec, JSObject* thisObject, JSValuePtr value)
148
 
{
149
 
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl());
150
 
    imp->setX(value->toFloat(exec));
151
 
    if (static_cast<JSSVGPathSegArcRel*>(thisObject)->context())
152
 
        static_cast<JSSVGPathSegArcRel*>(thisObject)->context()->svgAttributeChanged(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl()->associatedAttributeName());
153
 
}
154
 
 
155
 
void setJSSVGPathSegArcRelY(ExecState* exec, JSObject* thisObject, JSValuePtr value)
156
 
{
157
 
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl());
158
 
    imp->setY(value->toFloat(exec));
159
 
    if (static_cast<JSSVGPathSegArcRel*>(thisObject)->context())
160
 
        static_cast<JSSVGPathSegArcRel*>(thisObject)->context()->svgAttributeChanged(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl()->associatedAttributeName());
161
 
}
162
 
 
163
 
void setJSSVGPathSegArcRelR1(ExecState* exec, JSObject* thisObject, JSValuePtr value)
164
 
{
165
 
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl());
166
 
    imp->setR1(value->toFloat(exec));
167
 
    if (static_cast<JSSVGPathSegArcRel*>(thisObject)->context())
168
 
        static_cast<JSSVGPathSegArcRel*>(thisObject)->context()->svgAttributeChanged(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl()->associatedAttributeName());
169
 
}
170
 
 
171
 
void setJSSVGPathSegArcRelR2(ExecState* exec, JSObject* thisObject, JSValuePtr value)
172
 
{
173
 
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl());
174
 
    imp->setR2(value->toFloat(exec));
175
 
    if (static_cast<JSSVGPathSegArcRel*>(thisObject)->context())
176
 
        static_cast<JSSVGPathSegArcRel*>(thisObject)->context()->svgAttributeChanged(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl()->associatedAttributeName());
177
 
}
178
 
 
179
 
void setJSSVGPathSegArcRelAngle(ExecState* exec, JSObject* thisObject, JSValuePtr value)
180
 
{
181
 
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl());
182
 
    imp->setAngle(value->toFloat(exec));
183
 
    if (static_cast<JSSVGPathSegArcRel*>(thisObject)->context())
184
 
        static_cast<JSSVGPathSegArcRel*>(thisObject)->context()->svgAttributeChanged(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl()->associatedAttributeName());
185
 
}
186
 
 
187
 
void setJSSVGPathSegArcRelLargeArcFlag(ExecState* exec, JSObject* thisObject, JSValuePtr value)
188
 
{
189
 
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl());
190
 
    imp->setLargeArcFlag(value->toBoolean(exec));
191
 
    if (static_cast<JSSVGPathSegArcRel*>(thisObject)->context())
192
 
        static_cast<JSSVGPathSegArcRel*>(thisObject)->context()->svgAttributeChanged(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl()->associatedAttributeName());
193
 
}
194
 
 
195
 
void setJSSVGPathSegArcRelSweepFlag(ExecState* exec, JSObject* thisObject, JSValuePtr value)
196
 
{
197
 
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl());
198
 
    imp->setSweepFlag(value->toBoolean(exec));
 
162
void setJSSVGPathSegArcRelX(ExecState* exec, JSObject* thisObject, JSValue value)
 
163
{
 
164
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl());
 
165
    imp->setX(value.toFloat(exec));
 
166
    if (static_cast<JSSVGPathSegArcRel*>(thisObject)->context())
 
167
        static_cast<JSSVGPathSegArcRel*>(thisObject)->context()->svgAttributeChanged(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl()->associatedAttributeName());
 
168
}
 
169
 
 
170
void setJSSVGPathSegArcRelY(ExecState* exec, JSObject* thisObject, JSValue value)
 
171
{
 
172
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl());
 
173
    imp->setY(value.toFloat(exec));
 
174
    if (static_cast<JSSVGPathSegArcRel*>(thisObject)->context())
 
175
        static_cast<JSSVGPathSegArcRel*>(thisObject)->context()->svgAttributeChanged(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl()->associatedAttributeName());
 
176
}
 
177
 
 
178
void setJSSVGPathSegArcRelR1(ExecState* exec, JSObject* thisObject, JSValue value)
 
179
{
 
180
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl());
 
181
    imp->setR1(value.toFloat(exec));
 
182
    if (static_cast<JSSVGPathSegArcRel*>(thisObject)->context())
 
183
        static_cast<JSSVGPathSegArcRel*>(thisObject)->context()->svgAttributeChanged(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl()->associatedAttributeName());
 
184
}
 
185
 
 
186
void setJSSVGPathSegArcRelR2(ExecState* exec, JSObject* thisObject, JSValue value)
 
187
{
 
188
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl());
 
189
    imp->setR2(value.toFloat(exec));
 
190
    if (static_cast<JSSVGPathSegArcRel*>(thisObject)->context())
 
191
        static_cast<JSSVGPathSegArcRel*>(thisObject)->context()->svgAttributeChanged(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl()->associatedAttributeName());
 
192
}
 
193
 
 
194
void setJSSVGPathSegArcRelAngle(ExecState* exec, JSObject* thisObject, JSValue value)
 
195
{
 
196
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl());
 
197
    imp->setAngle(value.toFloat(exec));
 
198
    if (static_cast<JSSVGPathSegArcRel*>(thisObject)->context())
 
199
        static_cast<JSSVGPathSegArcRel*>(thisObject)->context()->svgAttributeChanged(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl()->associatedAttributeName());
 
200
}
 
201
 
 
202
void setJSSVGPathSegArcRelLargeArcFlag(ExecState* exec, JSObject* thisObject, JSValue value)
 
203
{
 
204
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl());
 
205
    imp->setLargeArcFlag(value.toBoolean(exec));
 
206
    if (static_cast<JSSVGPathSegArcRel*>(thisObject)->context())
 
207
        static_cast<JSSVGPathSegArcRel*>(thisObject)->context()->svgAttributeChanged(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl()->associatedAttributeName());
 
208
}
 
209
 
 
210
void setJSSVGPathSegArcRelSweepFlag(ExecState* exec, JSObject* thisObject, JSValue value)
 
211
{
 
212
    SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl());
 
213
    imp->setSweepFlag(value.toBoolean(exec));
199
214
    if (static_cast<JSSVGPathSegArcRel*>(thisObject)->context())
200
215
        static_cast<JSSVGPathSegArcRel*>(thisObject)->context()->svgAttributeChanged(static_cast<JSSVGPathSegArcRel*>(thisObject)->impl()->associatedAttributeName());
201
216
}