/src/3rdparty/webkit/Source/WebCore/generated/JSSVGAnimateTransformElement.cpp

https://bitbucket.org/ultra_iter/qt-vtl · C++ · 157 lines · 104 code · 31 blank · 22 comment · 1 complexity · de48b798982a0e1e109212540e7b4658 MD5 · raw file

  1. /*
  2. This file is part of the WebKit open source project.
  3. This file has been generated by generate-bindings.pl. DO NOT MODIFY!
  4. This library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Library General Public
  6. License as published by the Free Software Foundation; either
  7. version 2 of the License, or (at your option) any later version.
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Library General Public License for more details.
  12. You should have received a copy of the GNU Library General Public License
  13. along with this library; see the file COPYING.LIB. If not, write to
  14. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  15. Boston, MA 02110-1301, USA.
  16. */
  17. #include "config.h"
  18. #if ENABLE(SVG) && ENABLE(SVG_ANIMATION)
  19. #include "JSSVGAnimateTransformElement.h"
  20. #include "SVGAnimateTransformElement.h"
  21. #include <wtf/GetPtr.h>
  22. using namespace JSC;
  23. namespace WebCore {
  24. ASSERT_CLASS_FITS_IN_CELL(JSSVGAnimateTransformElement);
  25. /* Hash table */
  26. #if ENABLE(JIT)
  27. #define THUNK_GENERATOR(generator) , generator
  28. #else
  29. #define THUNK_GENERATOR(generator)
  30. #endif
  31. static const HashTableValue JSSVGAnimateTransformElementTableValues[2] =
  32. {
  33. { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGAnimateTransformElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) },
  34. { 0, 0, 0, 0 THUNK_GENERATOR(0) }
  35. };
  36. #undef THUNK_GENERATOR
  37. static JSC_CONST_HASHTABLE HashTable JSSVGAnimateTransformElementTable = { 2, 1, JSSVGAnimateTransformElementTableValues, 0 };
  38. /* Hash table for constructor */
  39. #if ENABLE(JIT)
  40. #define THUNK_GENERATOR(generator) , generator
  41. #else
  42. #define THUNK_GENERATOR(generator)
  43. #endif
  44. static const HashTableValue JSSVGAnimateTransformElementConstructorTableValues[1] =
  45. {
  46. { 0, 0, 0, 0 THUNK_GENERATOR(0) }
  47. };
  48. #undef THUNK_GENERATOR
  49. static JSC_CONST_HASHTABLE HashTable JSSVGAnimateTransformElementConstructorTable = { 1, 0, JSSVGAnimateTransformElementConstructorTableValues, 0 };
  50. class JSSVGAnimateTransformElementConstructor : public DOMConstructorObject {
  51. public:
  52. JSSVGAnimateTransformElementConstructor(JSC::ExecState*, JSC::Structure*, JSDOMGlobalObject*);
  53. virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
  54. virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
  55. static const JSC::ClassInfo s_info;
  56. static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype)
  57. {
  58. return JSC::Structure::create(globalData, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
  59. }
  60. protected:
  61. static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
  62. };
  63. const ClassInfo JSSVGAnimateTransformElementConstructor::s_info = { "SVGAnimateTransformElementConstructor", &DOMConstructorObject::s_info, &JSSVGAnimateTransformElementConstructorTable, 0 };
  64. JSSVGAnimateTransformElementConstructor::JSSVGAnimateTransformElementConstructor(ExecState* exec, Structure* structure, JSDOMGlobalObject* globalObject)
  65. : DOMConstructorObject(structure, globalObject)
  66. {
  67. ASSERT(inherits(&s_info));
  68. putDirect(exec->globalData(), exec->propertyNames().prototype, JSSVGAnimateTransformElementPrototype::self(exec, globalObject), DontDelete | ReadOnly);
  69. }
  70. bool JSSVGAnimateTransformElementConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
  71. {
  72. return getStaticValueSlot<JSSVGAnimateTransformElementConstructor, JSDOMWrapper>(exec, &JSSVGAnimateTransformElementConstructorTable, this, propertyName, slot);
  73. }
  74. bool JSSVGAnimateTransformElementConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
  75. {
  76. return getStaticValueDescriptor<JSSVGAnimateTransformElementConstructor, JSDOMWrapper>(exec, &JSSVGAnimateTransformElementConstructorTable, this, propertyName, descriptor);
  77. }
  78. /* Hash table for prototype */
  79. #if ENABLE(JIT)
  80. #define THUNK_GENERATOR(generator) , generator
  81. #else
  82. #define THUNK_GENERATOR(generator)
  83. #endif
  84. static const HashTableValue JSSVGAnimateTransformElementPrototypeTableValues[1] =
  85. {
  86. { 0, 0, 0, 0 THUNK_GENERATOR(0) }
  87. };
  88. #undef THUNK_GENERATOR
  89. static JSC_CONST_HASHTABLE HashTable JSSVGAnimateTransformElementPrototypeTable = { 1, 0, JSSVGAnimateTransformElementPrototypeTableValues, 0 };
  90. const ClassInfo JSSVGAnimateTransformElementPrototype::s_info = { "SVGAnimateTransformElementPrototype", &JSC::JSObjectWithGlobalObject::s_info, &JSSVGAnimateTransformElementPrototypeTable, 0 };
  91. JSObject* JSSVGAnimateTransformElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
  92. {
  93. return getDOMPrototype<JSSVGAnimateTransformElement>(exec, globalObject);
  94. }
  95. const ClassInfo JSSVGAnimateTransformElement::s_info = { "SVGAnimateTransformElement", &JSSVGAnimationElement::s_info, &JSSVGAnimateTransformElementTable, 0 };
  96. JSSVGAnimateTransformElement::JSSVGAnimateTransformElement(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGAnimateTransformElement> impl)
  97. : JSSVGAnimationElement(structure, globalObject, impl)
  98. {
  99. ASSERT(inherits(&s_info));
  100. }
  101. JSObject* JSSVGAnimateTransformElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
  102. {
  103. return new (exec) JSSVGAnimateTransformElementPrototype(exec->globalData(), globalObject, JSSVGAnimateTransformElementPrototype::createStructure(exec->globalData(), JSSVGAnimationElementPrototype::self(exec, globalObject)));
  104. }
  105. bool JSSVGAnimateTransformElement::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
  106. {
  107. return getStaticValueSlot<JSSVGAnimateTransformElement, Base>(exec, &JSSVGAnimateTransformElementTable, this, propertyName, slot);
  108. }
  109. bool JSSVGAnimateTransformElement::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
  110. {
  111. return getStaticValueDescriptor<JSSVGAnimateTransformElement, Base>(exec, &JSSVGAnimateTransformElementTable, this, propertyName, descriptor);
  112. }
  113. JSValue jsSVGAnimateTransformElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
  114. {
  115. JSSVGAnimateTransformElement* domObject = static_cast<JSSVGAnimateTransformElement*>(asObject(slotBase));
  116. return JSSVGAnimateTransformElement::getConstructor(exec, domObject->globalObject());
  117. }
  118. JSValue JSSVGAnimateTransformElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
  119. {
  120. return getDOMConstructor<JSSVGAnimateTransformElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
  121. }
  122. }
  123. #endif // ENABLE(SVG) && ENABLE(SVG_ANIMATION)