diff options
Diffstat (limited to 'Source/WebCore/bindings/v8/custom/V8ArrayBufferViewCustom.h')
-rw-r--r-- | Source/WebCore/bindings/v8/custom/V8ArrayBufferViewCustom.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/WebCore/bindings/v8/custom/V8ArrayBufferViewCustom.h b/Source/WebCore/bindings/v8/custom/V8ArrayBufferViewCustom.h index 6881a01..f842b6d 100644 --- a/Source/WebCore/bindings/v8/custom/V8ArrayBufferViewCustom.h +++ b/Source/WebCore/bindings/v8/custom/V8ArrayBufferViewCustom.h @@ -31,8 +31,6 @@ #ifndef V8ArrayBufferViewCustom_h #define V8ArrayBufferViewCustom_h -#if ENABLE(3D_CANVAS) || ENABLE(BLOB) - #include "ArrayBuffer.h" #include "V8ArrayBuffer.h" @@ -87,7 +85,7 @@ v8::Handle<v8::Value> constructWebGLArray(const v8::Arguments& args, WrapperType int argLen = args.Length(); if (!argLen) { // This happens when we return a previously constructed - // ArrayBufferView, e.g. from the call to <Type>Array.slice(). + // ArrayBufferView, e.g. from the call to <Type>Array.subset(). // The V8DOMWrapper will set the internal pointer in the // created object. Unfortunately it doesn't look like it's // possible to distinguish between this case and that where @@ -99,7 +97,7 @@ v8::Handle<v8::Value> constructWebGLArray(const v8::Arguments& args, WrapperType V8DOMWrapper::setDOMWrapper(args.Holder(), type, array.get()); // Do not call SetIndexedPropertiesToExternalArrayData on this // object. Not only is there no point from a performance - // perspective, but doing so causes errors in the slice() case. + // perspective, but doing so causes errors in the subset() case. return toV8(array.release(), args.Holder()); } @@ -209,6 +207,4 @@ v8::Handle<v8::Value> setWebGLArrayHelper(const v8::Arguments& args) } -#endif // ENABLE(3D_CANVAS) - #endif // V8ArrayBufferViewCustom_h |