diff options
Diffstat (limited to 'src/3rdparty/webkit/WebCore/generated/JSCSSVariablesRule.cpp')
-rw-r--r-- | src/3rdparty/webkit/WebCore/generated/JSCSSVariablesRule.cpp | 156 |
1 files changed, 156 insertions, 0 deletions
diff --git a/src/3rdparty/webkit/WebCore/generated/JSCSSVariablesRule.cpp b/src/3rdparty/webkit/WebCore/generated/JSCSSVariablesRule.cpp new file mode 100644 index 0000000..1e80477 --- /dev/null +++ b/src/3rdparty/webkit/WebCore/generated/JSCSSVariablesRule.cpp @@ -0,0 +1,156 @@ +/* + This file is part of the WebKit open source project. + This file has been generated by generate-bindings.pl. DO NOT MODIFY! + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "config.h" + +#include "JSCSSVariablesRule.h" + +#include <wtf/GetPtr.h> + +#include "CSSVariablesDeclaration.h" +#include "CSSVariablesRule.h" +#include "JSCSSVariablesDeclaration.h" +#include "JSMediaList.h" +#include "MediaList.h" + +#include <runtime/JSNumberCell.h> + +using namespace JSC; + +namespace WebCore { + +ASSERT_CLASS_FITS_IN_CELL(JSCSSVariablesRule) + +/* Hash table */ + +static const HashTableValue JSCSSVariablesRuleTableValues[4] = +{ + { "media", DontDelete|ReadOnly, (intptr_t)jsCSSVariablesRuleMedia, (intptr_t)0 }, + { "variables", DontDelete|ReadOnly, (intptr_t)jsCSSVariablesRuleVariables, (intptr_t)0 }, + { "constructor", DontEnum|ReadOnly, (intptr_t)jsCSSVariablesRuleConstructor, (intptr_t)0 }, + { 0, 0, 0, 0 } +}; + +static const HashTable JSCSSVariablesRuleTable = +#if ENABLE(PERFECT_HASH_SIZE) + { 15, JSCSSVariablesRuleTableValues, 0 }; +#else + { 9, 7, JSCSSVariablesRuleTableValues, 0 }; +#endif + +/* Hash table for constructor */ + +static const HashTableValue JSCSSVariablesRuleConstructorTableValues[1] = +{ + { 0, 0, 0, 0 } +}; + +static const HashTable JSCSSVariablesRuleConstructorTable = +#if ENABLE(PERFECT_HASH_SIZE) + { 0, JSCSSVariablesRuleConstructorTableValues, 0 }; +#else + { 1, 0, JSCSSVariablesRuleConstructorTableValues, 0 }; +#endif + +class JSCSSVariablesRuleConstructor : public DOMObject { +public: + JSCSSVariablesRuleConstructor(ExecState* exec) + : DOMObject(JSCSSVariablesRuleConstructor::createStructure(exec->lexicalGlobalObject()->objectPrototype())) + { + putDirect(exec->propertyNames().prototype, JSCSSVariablesRulePrototype::self(exec), 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) + { + return Structure::create(proto, TypeInfo(ObjectType, ImplementsHasInstance)); + } +}; + +const ClassInfo JSCSSVariablesRuleConstructor::s_info = { "CSSVariablesRuleConstructor", 0, &JSCSSVariablesRuleConstructorTable, 0 }; + +bool JSCSSVariablesRuleConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) +{ + return getStaticValueSlot<JSCSSVariablesRuleConstructor, DOMObject>(exec, &JSCSSVariablesRuleConstructorTable, this, propertyName, slot); +} + +/* Hash table for prototype */ + +static const HashTableValue JSCSSVariablesRulePrototypeTableValues[1] = +{ + { 0, 0, 0, 0 } +}; + +static const HashTable JSCSSVariablesRulePrototypeTable = +#if ENABLE(PERFECT_HASH_SIZE) + { 0, JSCSSVariablesRulePrototypeTableValues, 0 }; +#else + { 1, 0, JSCSSVariablesRulePrototypeTableValues, 0 }; +#endif + +const ClassInfo JSCSSVariablesRulePrototype::s_info = { "CSSVariablesRulePrototype", 0, &JSCSSVariablesRulePrototypeTable, 0 }; + +JSObject* JSCSSVariablesRulePrototype::self(ExecState* exec) +{ + return getDOMPrototype<JSCSSVariablesRule>(exec); +} + +const ClassInfo JSCSSVariablesRule::s_info = { "CSSVariablesRule", &JSCSSRule::s_info, &JSCSSVariablesRuleTable, 0 }; + +JSCSSVariablesRule::JSCSSVariablesRule(PassRefPtr<Structure> structure, PassRefPtr<CSSVariablesRule> impl) + : JSCSSRule(structure, impl) +{ +} + +JSObject* JSCSSVariablesRule::createPrototype(ExecState* exec) +{ + return new (exec) JSCSSVariablesRulePrototype(JSCSSVariablesRulePrototype::createStructure(JSCSSRulePrototype::self(exec))); +} + +bool JSCSSVariablesRule::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) +{ + return getStaticValueSlot<JSCSSVariablesRule, Base>(exec, &JSCSSVariablesRuleTable, this, propertyName, slot); +} + +JSValuePtr jsCSSVariablesRuleMedia(ExecState* exec, const Identifier&, const PropertySlot& slot) +{ + CSSVariablesRule* imp = static_cast<CSSVariablesRule*>(static_cast<JSCSSVariablesRule*>(asObject(slot.slotBase()))->impl()); + return toJS(exec, WTF::getPtr(imp->media())); +} + +JSValuePtr jsCSSVariablesRuleVariables(ExecState* exec, const Identifier&, const PropertySlot& slot) +{ + CSSVariablesRule* imp = static_cast<CSSVariablesRule*>(static_cast<JSCSSVariablesRule*>(asObject(slot.slotBase()))->impl()); + return toJS(exec, WTF::getPtr(imp->variables())); +} + +JSValuePtr jsCSSVariablesRuleConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot) +{ + return static_cast<JSCSSVariablesRule*>(asObject(slot.slotBase()))->getConstructor(exec); +} +JSValuePtr JSCSSVariablesRule::getConstructor(ExecState* exec) +{ + return getDOMConstructor<JSCSSVariablesRuleConstructor>(exec); +} + + +} |