diff options
Diffstat (limited to 'src/3rdparty/webkit/WebCore/generated/JSCSSValue.cpp')
-rw-r--r-- | src/3rdparty/webkit/WebCore/generated/JSCSSValue.cpp | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/src/3rdparty/webkit/WebCore/generated/JSCSSValue.cpp b/src/3rdparty/webkit/WebCore/generated/JSCSSValue.cpp index 50ee92b..da216fd 100644 --- a/src/3rdparty/webkit/WebCore/generated/JSCSSValue.cpp +++ b/src/3rdparty/webkit/WebCore/generated/JSCSSValue.cpp @@ -33,7 +33,7 @@ using namespace JSC; namespace WebCore { -ASSERT_CLASS_FITS_IN_CELL(JSCSSValue) +ASSERT_CLASS_FITS_IN_CELL(JSCSSValue); /* Hash table */ @@ -75,13 +75,13 @@ public: JSCSSValueConstructor(ExecState* exec) : DOMObject(JSCSSValueConstructor::createStructure(exec->lexicalGlobalObject()->objectPrototype())) { - putDirect(exec->propertyNames().prototype, JSCSSValuePrototype::self(exec), None); + putDirect(exec->propertyNames().prototype, JSCSSValuePrototype::self(exec, exec->lexicalGlobalObject()), None); } virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&); virtual const ClassInfo* classInfo() const { return &s_info; } static const ClassInfo s_info; - static PassRefPtr<Structure> createStructure(JSValuePtr proto) + static PassRefPtr<Structure> createStructure(JSValue proto) { return Structure::create(proto, TypeInfo(ObjectType, ImplementsHasInstance)); } @@ -114,9 +114,9 @@ static const HashTable JSCSSValuePrototypeTable = const ClassInfo JSCSSValuePrototype::s_info = { "CSSValuePrototype", 0, &JSCSSValuePrototypeTable, 0 }; -JSObject* JSCSSValuePrototype::self(ExecState* exec) +JSObject* JSCSSValuePrototype::self(ExecState* exec, JSGlobalObject* globalObject) { - return getDOMPrototype<JSCSSValue>(exec); + return getDOMPrototype<JSCSSValue>(exec, globalObject); } bool JSCSSValuePrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) @@ -135,12 +135,11 @@ JSCSSValue::JSCSSValue(PassRefPtr<Structure> structure, PassRefPtr<CSSValue> imp JSCSSValue::~JSCSSValue() { forgetDOMObject(*Heap::heap(this)->globalData(), m_impl.get()); - } -JSObject* JSCSSValue::createPrototype(ExecState* exec) +JSObject* JSCSSValue::createPrototype(ExecState* exec, JSGlobalObject* globalObject) { - return new (exec) JSCSSValuePrototype(JSCSSValuePrototype::createStructure(exec->lexicalGlobalObject()->objectPrototype())); + return new (exec) JSCSSValuePrototype(JSCSSValuePrototype::createStructure(globalObject->objectPrototype())); } bool JSCSSValue::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) @@ -148,28 +147,30 @@ bool JSCSSValue::getOwnPropertySlot(ExecState* exec, const Identifier& propertyN return getStaticValueSlot<JSCSSValue, Base>(exec, &JSCSSValueTable, this, propertyName, slot); } -JSValuePtr jsCSSValueCssText(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsCSSValueCssText(ExecState* exec, const Identifier&, const PropertySlot& slot) { + UNUSED_PARAM(exec); CSSValue* imp = static_cast<CSSValue*>(static_cast<JSCSSValue*>(asObject(slot.slotBase()))->impl()); return jsStringOrNull(exec, imp->cssText()); } -JSValuePtr jsCSSValueCssValueType(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsCSSValueCssValueType(ExecState* exec, const Identifier&, const PropertySlot& slot) { + UNUSED_PARAM(exec); CSSValue* imp = static_cast<CSSValue*>(static_cast<JSCSSValue*>(asObject(slot.slotBase()))->impl()); return jsNumber(exec, imp->cssValueType()); } -JSValuePtr jsCSSValueConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsCSSValueConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot) { return static_cast<JSCSSValue*>(asObject(slot.slotBase()))->getConstructor(exec); } -void JSCSSValue::put(ExecState* exec, const Identifier& propertyName, JSValuePtr value, PutPropertySlot& slot) +void JSCSSValue::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot) { lookupPut<JSCSSValue, Base>(exec, propertyName, value, &JSCSSValueTable, this, slot); } -void setJSCSSValueCssText(ExecState* exec, JSObject* thisObject, JSValuePtr value) +void setJSCSSValueCssText(ExecState* exec, JSObject* thisObject, JSValue value) { CSSValue* imp = static_cast<CSSValue*>(static_cast<JSCSSValue*>(thisObject)->impl()); ExceptionCode ec = 0; @@ -177,36 +178,36 @@ void setJSCSSValueCssText(ExecState* exec, JSObject* thisObject, JSValuePtr valu setDOMException(exec, ec); } -JSValuePtr JSCSSValue::getConstructor(ExecState* exec) +JSValue JSCSSValue::getConstructor(ExecState* exec) { return getDOMConstructor<JSCSSValueConstructor>(exec); } // Constant getters -JSValuePtr jsCSSValueCSS_INHERIT(ExecState* exec, const Identifier&, const PropertySlot&) +JSValue jsCSSValueCSS_INHERIT(ExecState* exec, const Identifier&, const PropertySlot&) { return jsNumber(exec, static_cast<int>(0)); } -JSValuePtr jsCSSValueCSS_PRIMITIVE_VALUE(ExecState* exec, const Identifier&, const PropertySlot&) +JSValue jsCSSValueCSS_PRIMITIVE_VALUE(ExecState* exec, const Identifier&, const PropertySlot&) { return jsNumber(exec, static_cast<int>(1)); } -JSValuePtr jsCSSValueCSS_VALUE_LIST(ExecState* exec, const Identifier&, const PropertySlot&) +JSValue jsCSSValueCSS_VALUE_LIST(ExecState* exec, const Identifier&, const PropertySlot&) { return jsNumber(exec, static_cast<int>(2)); } -JSValuePtr jsCSSValueCSS_CUSTOM(ExecState* exec, const Identifier&, const PropertySlot&) +JSValue jsCSSValueCSS_CUSTOM(ExecState* exec, const Identifier&, const PropertySlot&) { return jsNumber(exec, static_cast<int>(3)); } -CSSValue* toCSSValue(JSC::JSValuePtr value) +CSSValue* toCSSValue(JSC::JSValue value) { - return value->isObject(&JSCSSValue::s_info) ? static_cast<JSCSSValue*>(asObject(value))->impl() : 0; + return value.isObject(&JSCSSValue::s_info) ? static_cast<JSCSSValue*>(asObject(value))->impl() : 0; } } |