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

« back to all changes in this revision

Viewing changes to src/3rdparty/webkit/WebCore/generated/JSSVGPathSegLinetoHorizontalAbs.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 "JSSVGPathSegLinetoHorizontalAbs.h"
28
26
 
29
 
#include <wtf/GetPtr.h>
30
 
 
31
27
#include "SVGPathSegLinetoHorizontal.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(JSSVGPathSegLinetoHorizontalAbs)
 
35
ASSERT_CLASS_FITS_IN_CELL(JSSVGPathSegLinetoHorizontalAbs);
40
36
 
41
37
/* Hash table */
42
38
 
46
42
    { 0, 0, 0, 0 }
47
43
};
48
44
 
49
 
static const HashTable JSSVGPathSegLinetoHorizontalAbsTable =
 
45
static JSC_CONST_HASHTABLE HashTable JSSVGPathSegLinetoHorizontalAbsTable =
50
46
#if ENABLE(PERFECT_HASH_SIZE)
51
47
    { 0, JSSVGPathSegLinetoHorizontalAbsTableValues, 0 };
52
48
#else
60
56
    { 0, 0, 0, 0 }
61
57
};
62
58
 
63
 
static const HashTable JSSVGPathSegLinetoHorizontalAbsPrototypeTable =
 
59
static JSC_CONST_HASHTABLE HashTable JSSVGPathSegLinetoHorizontalAbsPrototypeTable =
64
60
#if ENABLE(PERFECT_HASH_SIZE)
65
61
    { 0, JSSVGPathSegLinetoHorizontalAbsPrototypeTableValues, 0 };
66
62
#else
76
72
 
77
73
const ClassInfo JSSVGPathSegLinetoHorizontalAbs::s_info = { "SVGPathSegLinetoHorizontalAbs", &JSSVGPathSeg::s_info, &JSSVGPathSegLinetoHorizontalAbsTable, 0 };
78
74
 
79
 
JSSVGPathSegLinetoHorizontalAbs::JSSVGPathSegLinetoHorizontalAbs(PassRefPtr<Structure> structure, PassRefPtr<SVGPathSegLinetoHorizontalAbs> impl, SVGElement* context)
80
 
    : JSSVGPathSeg(structure, impl, context)
 
75
JSSVGPathSegLinetoHorizontalAbs::JSSVGPathSegLinetoHorizontalAbs(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGPathSegLinetoHorizontalAbs> impl, SVGElement* context)
 
76
    : JSSVGPathSeg(structure, globalObject, impl, context)
81
77
{
82
78
}
83
79
 
91
87
    return getStaticValueSlot<JSSVGPathSegLinetoHorizontalAbs, Base>(exec, &JSSVGPathSegLinetoHorizontalAbsTable, this, propertyName, slot);
92
88
}
93
89
 
94
 
JSValuePtr jsSVGPathSegLinetoHorizontalAbsX(ExecState* exec, const Identifier&, const PropertySlot& slot)
95
 
{
96
 
    SVGPathSegLinetoHorizontalAbs* imp = static_cast<SVGPathSegLinetoHorizontalAbs*>(static_cast<JSSVGPathSegLinetoHorizontalAbs*>(asObject(slot.slotBase()))->impl());
 
90
bool JSSVGPathSegLinetoHorizontalAbs::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
 
91
{
 
92
    return getStaticValueDescriptor<JSSVGPathSegLinetoHorizontalAbs, Base>(exec, &JSSVGPathSegLinetoHorizontalAbsTable, this, propertyName, descriptor);
 
93
}
 
94
 
 
95
JSValue jsSVGPathSegLinetoHorizontalAbsX(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
96
{
 
97
    JSSVGPathSegLinetoHorizontalAbs* castedThis = static_cast<JSSVGPathSegLinetoHorizontalAbs*>(asObject(slot.slotBase()));
 
98
    UNUSED_PARAM(exec);
 
99
    SVGPathSegLinetoHorizontalAbs* imp = static_cast<SVGPathSegLinetoHorizontalAbs*>(castedThis->impl());
97
100
    return jsNumber(exec, imp->x());
98
101
}
99
102
 
100
 
void JSSVGPathSegLinetoHorizontalAbs::put(ExecState* exec, const Identifier& propertyName, JSValuePtr value, PutPropertySlot& slot)
 
103
void JSSVGPathSegLinetoHorizontalAbs::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
101
104
{
102
105
    lookupPut<JSSVGPathSegLinetoHorizontalAbs, Base>(exec, propertyName, value, &JSSVGPathSegLinetoHorizontalAbsTable, this, slot);
103
106
}
104
107
 
105
 
void setJSSVGPathSegLinetoHorizontalAbsX(ExecState* exec, JSObject* thisObject, JSValuePtr value)
 
108
void setJSSVGPathSegLinetoHorizontalAbsX(ExecState* exec, JSObject* thisObject, JSValue value)
106
109
{
107
110
    SVGPathSegLinetoHorizontalAbs* imp = static_cast<SVGPathSegLinetoHorizontalAbs*>(static_cast<JSSVGPathSegLinetoHorizontalAbs*>(thisObject)->impl());
108
 
    imp->setX(value->toFloat(exec));
 
111
    imp->setX(value.toFloat(exec));
109
112
    if (static_cast<JSSVGPathSegLinetoHorizontalAbs*>(thisObject)->context())
110
113
        static_cast<JSSVGPathSegLinetoHorizontalAbs*>(thisObject)->context()->svgAttributeChanged(static_cast<JSSVGPathSegLinetoHorizontalAbs*>(thisObject)->impl()->associatedAttributeName());
111
114
}