diff options
Diffstat (limited to 'src/3rdparty/webkit/WebCore/generated/JSCSSRule.cpp')
-rw-r--r-- | src/3rdparty/webkit/WebCore/generated/JSCSSRule.cpp | 59 |
1 files changed, 31 insertions, 28 deletions
diff --git a/src/3rdparty/webkit/WebCore/generated/JSCSSRule.cpp b/src/3rdparty/webkit/WebCore/generated/JSCSSRule.cpp index 3dc2b55..47bb5cc 100644 --- a/src/3rdparty/webkit/WebCore/generated/JSCSSRule.cpp +++ b/src/3rdparty/webkit/WebCore/generated/JSCSSRule.cpp @@ -36,7 +36,7 @@ using namespace JSC; namespace WebCore { -ASSERT_CLASS_FITS_IN_CELL(JSCSSRule) +ASSERT_CLASS_FITS_IN_CELL(JSCSSRule); /* Hash table */ @@ -86,13 +86,13 @@ public: JSCSSRuleConstructor(ExecState* exec) : DOMObject(JSCSSRuleConstructor::createStructure(exec->lexicalGlobalObject()->objectPrototype())) { - putDirect(exec->propertyNames().prototype, JSCSSRulePrototype::self(exec), None); + putDirect(exec->propertyNames().prototype, JSCSSRulePrototype::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)); } @@ -131,9 +131,9 @@ static const HashTable JSCSSRulePrototypeTable = const ClassInfo JSCSSRulePrototype::s_info = { "CSSRulePrototype", 0, &JSCSSRulePrototypeTable, 0 }; -JSObject* JSCSSRulePrototype::self(ExecState* exec) +JSObject* JSCSSRulePrototype::self(ExecState* exec, JSGlobalObject* globalObject) { - return getDOMPrototype<JSCSSRule>(exec); + return getDOMPrototype<JSCSSRule>(exec, globalObject); } bool JSCSSRulePrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) @@ -152,12 +152,11 @@ JSCSSRule::JSCSSRule(PassRefPtr<Structure> structure, PassRefPtr<CSSRule> impl) JSCSSRule::~JSCSSRule() { forgetDOMObject(*Heap::heap(this)->globalData(), m_impl.get()); - } -JSObject* JSCSSRule::createPrototype(ExecState* exec) +JSObject* JSCSSRule::createPrototype(ExecState* exec, JSGlobalObject* globalObject) { - return new (exec) JSCSSRulePrototype(JSCSSRulePrototype::createStructure(exec->lexicalGlobalObject()->objectPrototype())); + return new (exec) JSCSSRulePrototype(JSCSSRulePrototype::createStructure(globalObject->objectPrototype())); } bool JSCSSRule::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) @@ -165,40 +164,44 @@ bool JSCSSRule::getOwnPropertySlot(ExecState* exec, const Identifier& propertyNa return getStaticValueSlot<JSCSSRule, Base>(exec, &JSCSSRuleTable, this, propertyName, slot); } -JSValuePtr jsCSSRuleType(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsCSSRuleType(ExecState* exec, const Identifier&, const PropertySlot& slot) { + UNUSED_PARAM(exec); CSSRule* imp = static_cast<CSSRule*>(static_cast<JSCSSRule*>(asObject(slot.slotBase()))->impl()); return jsNumber(exec, imp->type()); } -JSValuePtr jsCSSRuleCssText(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsCSSRuleCssText(ExecState* exec, const Identifier&, const PropertySlot& slot) { + UNUSED_PARAM(exec); CSSRule* imp = static_cast<CSSRule*>(static_cast<JSCSSRule*>(asObject(slot.slotBase()))->impl()); return jsStringOrNull(exec, imp->cssText()); } -JSValuePtr jsCSSRuleParentStyleSheet(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsCSSRuleParentStyleSheet(ExecState* exec, const Identifier&, const PropertySlot& slot) { + UNUSED_PARAM(exec); CSSRule* imp = static_cast<CSSRule*>(static_cast<JSCSSRule*>(asObject(slot.slotBase()))->impl()); return toJS(exec, WTF::getPtr(imp->parentStyleSheet())); } -JSValuePtr jsCSSRuleParentRule(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsCSSRuleParentRule(ExecState* exec, const Identifier&, const PropertySlot& slot) { + UNUSED_PARAM(exec); CSSRule* imp = static_cast<CSSRule*>(static_cast<JSCSSRule*>(asObject(slot.slotBase()))->impl()); return toJS(exec, WTF::getPtr(imp->parentRule())); } -JSValuePtr jsCSSRuleConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsCSSRuleConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot) { return static_cast<JSCSSRule*>(asObject(slot.slotBase()))->getConstructor(exec); } -void JSCSSRule::put(ExecState* exec, const Identifier& propertyName, JSValuePtr value, PutPropertySlot& slot) +void JSCSSRule::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot) { lookupPut<JSCSSRule, Base>(exec, propertyName, value, &JSCSSRuleTable, this, slot); } -void setJSCSSRuleCssText(ExecState* exec, JSObject* thisObject, JSValuePtr value) +void setJSCSSRuleCssText(ExecState* exec, JSObject* thisObject, JSValue value) { CSSRule* imp = static_cast<CSSRule*>(static_cast<JSCSSRule*>(thisObject)->impl()); ExceptionCode ec = 0; @@ -206,66 +209,66 @@ void setJSCSSRuleCssText(ExecState* exec, JSObject* thisObject, JSValuePtr value setDOMException(exec, ec); } -JSValuePtr JSCSSRule::getConstructor(ExecState* exec) +JSValue JSCSSRule::getConstructor(ExecState* exec) { return getDOMConstructor<JSCSSRuleConstructor>(exec); } // Constant getters -JSValuePtr jsCSSRuleUNKNOWN_RULE(ExecState* exec, const Identifier&, const PropertySlot&) +JSValue jsCSSRuleUNKNOWN_RULE(ExecState* exec, const Identifier&, const PropertySlot&) { return jsNumber(exec, static_cast<int>(0)); } -JSValuePtr jsCSSRuleSTYLE_RULE(ExecState* exec, const Identifier&, const PropertySlot&) +JSValue jsCSSRuleSTYLE_RULE(ExecState* exec, const Identifier&, const PropertySlot&) { return jsNumber(exec, static_cast<int>(1)); } -JSValuePtr jsCSSRuleCHARSET_RULE(ExecState* exec, const Identifier&, const PropertySlot&) +JSValue jsCSSRuleCHARSET_RULE(ExecState* exec, const Identifier&, const PropertySlot&) { return jsNumber(exec, static_cast<int>(2)); } -JSValuePtr jsCSSRuleIMPORT_RULE(ExecState* exec, const Identifier&, const PropertySlot&) +JSValue jsCSSRuleIMPORT_RULE(ExecState* exec, const Identifier&, const PropertySlot&) { return jsNumber(exec, static_cast<int>(3)); } -JSValuePtr jsCSSRuleMEDIA_RULE(ExecState* exec, const Identifier&, const PropertySlot&) +JSValue jsCSSRuleMEDIA_RULE(ExecState* exec, const Identifier&, const PropertySlot&) { return jsNumber(exec, static_cast<int>(4)); } -JSValuePtr jsCSSRuleFONT_FACE_RULE(ExecState* exec, const Identifier&, const PropertySlot&) +JSValue jsCSSRuleFONT_FACE_RULE(ExecState* exec, const Identifier&, const PropertySlot&) { return jsNumber(exec, static_cast<int>(5)); } -JSValuePtr jsCSSRulePAGE_RULE(ExecState* exec, const Identifier&, const PropertySlot&) +JSValue jsCSSRulePAGE_RULE(ExecState* exec, const Identifier&, const PropertySlot&) { return jsNumber(exec, static_cast<int>(6)); } -JSValuePtr jsCSSRuleVARIABLES_RULE(ExecState* exec, const Identifier&, const PropertySlot&) +JSValue jsCSSRuleVARIABLES_RULE(ExecState* exec, const Identifier&, const PropertySlot&) { return jsNumber(exec, static_cast<int>(7)); } -JSValuePtr jsCSSRuleWEBKIT_KEYFRAMES_RULE(ExecState* exec, const Identifier&, const PropertySlot&) +JSValue jsCSSRuleWEBKIT_KEYFRAMES_RULE(ExecState* exec, const Identifier&, const PropertySlot&) { return jsNumber(exec, static_cast<int>(8)); } -JSValuePtr jsCSSRuleWEBKIT_KEYFRAME_RULE(ExecState* exec, const Identifier&, const PropertySlot&) +JSValue jsCSSRuleWEBKIT_KEYFRAME_RULE(ExecState* exec, const Identifier&, const PropertySlot&) { return jsNumber(exec, static_cast<int>(9)); } -CSSRule* toCSSRule(JSC::JSValuePtr value) +CSSRule* toCSSRule(JSC::JSValue value) { - return value->isObject(&JSCSSRule::s_info) ? static_cast<JSCSSRule*>(asObject(value))->impl() : 0; + return value.isObject(&JSCSSRule::s_info) ? static_cast<JSCSSRule*>(asObject(value))->impl() : 0; } } |