/*
    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"

#if ENABLE(FILTERS) && ENABLE(SVG)

#include "JSSVGFEFuncAElement.h"

#include "SVGFEFuncAElement.h"
#include <wtf/GetPtr.h>

using namespace JSC;

namespace WebCore {

/* Hash table */

static const HashTableValue JSSVGFEFuncAElementTableValues[] =
{
    { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEFuncAElementConstructor), (intptr_t)0, NoIntrinsic },
    { 0, 0, 0, 0, NoIntrinsic }
};

static const HashTable JSSVGFEFuncAElementTable = { 2, 1, JSSVGFEFuncAElementTableValues, 0 };
/* Hash table for constructor */

static const HashTableValue JSSVGFEFuncAElementConstructorTableValues[] =
{
    { 0, 0, 0, 0, NoIntrinsic }
};

static const HashTable JSSVGFEFuncAElementConstructorTable = { 1, 0, JSSVGFEFuncAElementConstructorTableValues, 0 };
const ClassInfo JSSVGFEFuncAElementConstructor::s_info = { "SVGFEFuncAElementConstructor", &Base::s_info, &JSSVGFEFuncAElementConstructorTable, 0, CREATE_METHOD_TABLE(JSSVGFEFuncAElementConstructor) };

JSSVGFEFuncAElementConstructor::JSSVGFEFuncAElementConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
    : DOMConstructorObject(structure, globalObject)
{
}

void JSSVGFEFuncAElementConstructor::finishCreation(ExecState* exec, JSDOMGlobalObject* globalObject)
{
    Base::finishCreation(exec->vm());
    ASSERT(inherits(&s_info));
    putDirect(exec->vm(), exec->propertyNames().prototype, JSSVGFEFuncAElementPrototype::self(exec, globalObject), DontDelete | ReadOnly);
    putDirect(exec->vm(), exec->propertyNames().length, jsNumber(0), ReadOnly | DontDelete | DontEnum);
}

bool JSSVGFEFuncAElementConstructor::getOwnPropertySlot(JSCell* cell, ExecState* exec, PropertyName propertyName, PropertySlot& slot)
{
    return getStaticValueSlot<JSSVGFEFuncAElementConstructor, JSDOMWrapper>(exec, &JSSVGFEFuncAElementConstructorTable, jsCast<JSSVGFEFuncAElementConstructor*>(cell), propertyName, slot);
}

bool JSSVGFEFuncAElementConstructor::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, PropertyName propertyName, PropertyDescriptor& descriptor)
{
    return getStaticValueDescriptor<JSSVGFEFuncAElementConstructor, JSDOMWrapper>(exec, &JSSVGFEFuncAElementConstructorTable, jsCast<JSSVGFEFuncAElementConstructor*>(object), propertyName, descriptor);
}

/* Hash table for prototype */

static const HashTableValue JSSVGFEFuncAElementPrototypeTableValues[] =
{
    { 0, 0, 0, 0, NoIntrinsic }
};

static const HashTable JSSVGFEFuncAElementPrototypeTable = { 1, 0, JSSVGFEFuncAElementPrototypeTableValues, 0 };
const ClassInfo JSSVGFEFuncAElementPrototype::s_info = { "SVGFEFuncAElementPrototype", &Base::s_info, &JSSVGFEFuncAElementPrototypeTable, 0, CREATE_METHOD_TABLE(JSSVGFEFuncAElementPrototype) };

JSObject* JSSVGFEFuncAElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
{
    return getDOMPrototype<JSSVGFEFuncAElement>(exec, globalObject);
}

const ClassInfo JSSVGFEFuncAElement::s_info = { "SVGFEFuncAElement", &Base::s_info, &JSSVGFEFuncAElementTable, 0 , CREATE_METHOD_TABLE(JSSVGFEFuncAElement) };

JSSVGFEFuncAElement::JSSVGFEFuncAElement(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGFEFuncAElement> impl)
    : JSSVGComponentTransferFunctionElement(structure, globalObject, impl)
{
}

void JSSVGFEFuncAElement::finishCreation(VM& vm)
{
    Base::finishCreation(vm);
    ASSERT(inherits(&s_info));
}

JSObject* JSSVGFEFuncAElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
{
    return JSSVGFEFuncAElementPrototype::create(exec->vm(), globalObject, JSSVGFEFuncAElementPrototype::createStructure(exec->vm(), globalObject, JSSVGComponentTransferFunctionElementPrototype::self(exec, globalObject)));
}

bool JSSVGFEFuncAElement::getOwnPropertySlot(JSCell* cell, ExecState* exec, PropertyName propertyName, PropertySlot& slot)
{
    JSSVGFEFuncAElement* thisObject = jsCast<JSSVGFEFuncAElement*>(cell);
    ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
    return getStaticValueSlot<JSSVGFEFuncAElement, Base>(exec, &JSSVGFEFuncAElementTable, thisObject, propertyName, slot);
}

bool JSSVGFEFuncAElement::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, PropertyName propertyName, PropertyDescriptor& descriptor)
{
    JSSVGFEFuncAElement* thisObject = jsCast<JSSVGFEFuncAElement*>(object);
    ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
    return getStaticValueDescriptor<JSSVGFEFuncAElement, Base>(exec, &JSSVGFEFuncAElementTable, thisObject, propertyName, descriptor);
}

JSValue jsSVGFEFuncAElementConstructor(ExecState* exec, JSValue slotBase, PropertyName)
{
    JSSVGFEFuncAElement* domObject = jsCast<JSSVGFEFuncAElement*>(asObject(slotBase));
    return JSSVGFEFuncAElement::getConstructor(exec, domObject->globalObject());
}

JSValue JSSVGFEFuncAElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
{
    return getDOMConstructor<JSSVGFEFuncAElementConstructor>(exec, jsCast<JSDOMGlobalObject*>(globalObject));
}


}

#endif // ENABLE(FILTERS) && ENABLE(SVG)
