diff options
Diffstat (limited to 'WebCore/bindings/v8/V8Collection.h')
-rw-r--r-- | WebCore/bindings/v8/V8Collection.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/WebCore/bindings/v8/V8Collection.h b/WebCore/bindings/v8/V8Collection.h index 9611571..1757c85 100644 --- a/WebCore/bindings/v8/V8Collection.h +++ b/WebCore/bindings/v8/V8Collection.h @@ -34,6 +34,7 @@ #include "HTMLFormElement.h" #include "HTMLSelectElement.h" #include "V8Binding.h" +#include "V8Node.h" #include "V8Proxy.h" #include <v8.h> @@ -63,7 +64,7 @@ template<class Collection, class ItemType> static v8::Handle<v8::Value> getNamed { // FIXME: assert object is a collection type ASSERT(V8DOMWrapper::maybeDOMWrapper(object)); - ASSERT(V8DOMWrapper::domWrapperType(object) != V8ClassIndex::NODE); + ASSERT(V8DOMWrapper::domWrapperType(object) != &V8Node::info); Collection* collection = toNativeCollection<Collection>(object); AtomicString propertyName = toAtomicWebCoreStringWithNullCheck(name); return getV8Object<ItemType>(collection->namedItem(propertyName)); @@ -89,7 +90,7 @@ template<class Collection, class ItemType> static v8::Handle<v8::Value> getIndex { // FIXME: Assert that object must be a collection type. ASSERT(V8DOMWrapper::maybeDOMWrapper(object)); - ASSERT(V8DOMWrapper::domWrapperType(object) != V8ClassIndex::NODE); + ASSERT(V8DOMWrapper::domWrapperType(object) != &V8Node::info); Collection* collection = toNativeCollection<Collection>(object); return getV8Object<ItemType>(collection->item(index)); } @@ -154,17 +155,16 @@ template<class Collection> static v8::Handle<v8::Value> collectionStringIndexedP // Add indexed getter to the function template for a collection. -template<class Collection, class ItemType> static void setCollectionIndexedGetter(v8::Handle<v8::FunctionTemplate> desc, V8ClassIndex::V8WrapperType type) +template<class Collection, class ItemType> static void setCollectionIndexedGetter(v8::Handle<v8::FunctionTemplate> desc) { - desc->InstanceTemplate()->SetIndexedPropertyHandler(collectionIndexedPropertyGetter<Collection, ItemType>, 0, 0, 0, collectionIndexedPropertyEnumerator<Collection>, - v8::Integer::New(V8ClassIndex::ToInt(type))); + desc->InstanceTemplate()->SetIndexedPropertyHandler(collectionIndexedPropertyGetter<Collection, ItemType>, 0, 0, 0, collectionIndexedPropertyEnumerator<Collection>); } // Add named getter to the function template for a collection. -template<class Collection, class ItemType> static void setCollectionNamedGetter(v8::Handle<v8::FunctionTemplate> desc, V8ClassIndex::V8WrapperType type) +template<class Collection, class ItemType> static void setCollectionNamedGetter(v8::Handle<v8::FunctionTemplate> desc) { - desc->InstanceTemplate()->SetNamedPropertyHandler(collectionNamedPropertyGetter<Collection, ItemType>, 0, 0, 0, 0, v8::Integer::New(V8ClassIndex::ToInt(type))); + desc->InstanceTemplate()->SetNamedPropertyHandler(collectionNamedPropertyGetter<Collection, ItemType>, 0, 0, 0, 0); } // Add indexed getter returning a string or null to a function template for a collection. |