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

« back to all changes in this revision

Viewing changes to src/3rdparty/webkit/WebCore/generated/JSSVGPathSegLinetoRel.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 "JSSVGPathSegLinetoRel.h"
28
26
 
29
 
#include <wtf/GetPtr.h>
30
 
 
31
27
#include "SVGPathSegLineto.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(JSSVGPathSegLinetoRel)
 
35
ASSERT_CLASS_FITS_IN_CELL(JSSVGPathSegLinetoRel);
40
36
 
41
37
/* Hash table */
42
38
 
47
43
    { 0, 0, 0, 0 }
48
44
};
49
45
 
50
 
static const HashTable JSSVGPathSegLinetoRelTable =
 
46
static JSC_CONST_HASHTABLE HashTable JSSVGPathSegLinetoRelTable =
51
47
#if ENABLE(PERFECT_HASH_SIZE)
52
48
    { 1, JSSVGPathSegLinetoRelTableValues, 0 };
53
49
#else
61
57
    { 0, 0, 0, 0 }
62
58
};
63
59
 
64
 
static const HashTable JSSVGPathSegLinetoRelPrototypeTable =
 
60
static JSC_CONST_HASHTABLE HashTable JSSVGPathSegLinetoRelPrototypeTable =
65
61
#if ENABLE(PERFECT_HASH_SIZE)
66
62
    { 0, JSSVGPathSegLinetoRelPrototypeTableValues, 0 };
67
63
#else
77
73
 
78
74
const ClassInfo JSSVGPathSegLinetoRel::s_info = { "SVGPathSegLinetoRel", &JSSVGPathSeg::s_info, &JSSVGPathSegLinetoRelTable, 0 };
79
75
 
80
 
JSSVGPathSegLinetoRel::JSSVGPathSegLinetoRel(PassRefPtr<Structure> structure, PassRefPtr<SVGPathSegLinetoRel> impl, SVGElement* context)
81
 
    : JSSVGPathSeg(structure, impl, context)
 
76
JSSVGPathSegLinetoRel::JSSVGPathSegLinetoRel(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGPathSegLinetoRel> impl, SVGElement* context)
 
77
    : JSSVGPathSeg(structure, globalObject, impl, context)
82
78
{
83
79
}
84
80
 
92
88
    return getStaticValueSlot<JSSVGPathSegLinetoRel, Base>(exec, &JSSVGPathSegLinetoRelTable, this, propertyName, slot);
93
89
}
94
90
 
95
 
JSValuePtr jsSVGPathSegLinetoRelX(ExecState* exec, const Identifier&, const PropertySlot& slot)
96
 
{
97
 
    SVGPathSegLinetoRel* imp = static_cast<SVGPathSegLinetoRel*>(static_cast<JSSVGPathSegLinetoRel*>(asObject(slot.slotBase()))->impl());
 
91
bool JSSVGPathSegLinetoRel::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
 
92
{
 
93
    return getStaticValueDescriptor<JSSVGPathSegLinetoRel, Base>(exec, &JSSVGPathSegLinetoRelTable, this, propertyName, descriptor);
 
94
}
 
95
 
 
96
JSValue jsSVGPathSegLinetoRelX(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
97
{
 
98
    JSSVGPathSegLinetoRel* castedThis = static_cast<JSSVGPathSegLinetoRel*>(asObject(slot.slotBase()));
 
99
    UNUSED_PARAM(exec);
 
100
    SVGPathSegLinetoRel* imp = static_cast<SVGPathSegLinetoRel*>(castedThis->impl());
98
101
    return jsNumber(exec, imp->x());
99
102
}
100
103
 
101
 
JSValuePtr jsSVGPathSegLinetoRelY(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
104
JSValue jsSVGPathSegLinetoRelY(ExecState* exec, const Identifier&, const PropertySlot& slot)
102
105
{
103
 
    SVGPathSegLinetoRel* imp = static_cast<SVGPathSegLinetoRel*>(static_cast<JSSVGPathSegLinetoRel*>(asObject(slot.slotBase()))->impl());
 
106
    JSSVGPathSegLinetoRel* castedThis = static_cast<JSSVGPathSegLinetoRel*>(asObject(slot.slotBase()));
 
107
    UNUSED_PARAM(exec);
 
108
    SVGPathSegLinetoRel* imp = static_cast<SVGPathSegLinetoRel*>(castedThis->impl());
104
109
    return jsNumber(exec, imp->y());
105
110
}
106
111
 
107
 
void JSSVGPathSegLinetoRel::put(ExecState* exec, const Identifier& propertyName, JSValuePtr value, PutPropertySlot& slot)
 
112
void JSSVGPathSegLinetoRel::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
108
113
{
109
114
    lookupPut<JSSVGPathSegLinetoRel, Base>(exec, propertyName, value, &JSSVGPathSegLinetoRelTable, this, slot);
110
115
}
111
116
 
112
 
void setJSSVGPathSegLinetoRelX(ExecState* exec, JSObject* thisObject, JSValuePtr value)
 
117
void setJSSVGPathSegLinetoRelX(ExecState* exec, JSObject* thisObject, JSValue value)
113
118
{
114
119
    SVGPathSegLinetoRel* imp = static_cast<SVGPathSegLinetoRel*>(static_cast<JSSVGPathSegLinetoRel*>(thisObject)->impl());
115
 
    imp->setX(value->toFloat(exec));
 
120
    imp->setX(value.toFloat(exec));
116
121
    if (static_cast<JSSVGPathSegLinetoRel*>(thisObject)->context())
117
122
        static_cast<JSSVGPathSegLinetoRel*>(thisObject)->context()->svgAttributeChanged(static_cast<JSSVGPathSegLinetoRel*>(thisObject)->impl()->associatedAttributeName());
118
123
}
119
124
 
120
 
void setJSSVGPathSegLinetoRelY(ExecState* exec, JSObject* thisObject, JSValuePtr value)
 
125
void setJSSVGPathSegLinetoRelY(ExecState* exec, JSObject* thisObject, JSValue value)
121
126
{
122
127
    SVGPathSegLinetoRel* imp = static_cast<SVGPathSegLinetoRel*>(static_cast<JSSVGPathSegLinetoRel*>(thisObject)->impl());
123
 
    imp->setY(value->toFloat(exec));
 
128
    imp->setY(value.toFloat(exec));
124
129
    if (static_cast<JSSVGPathSegLinetoRel*>(thisObject)->context())
125
130
        static_cast<JSSVGPathSegLinetoRel*>(thisObject)->context()->svgAttributeChanged(static_cast<JSSVGPathSegLinetoRel*>(thisObject)->impl()->associatedAttributeName());
126
131
}