diff options
Diffstat (limited to 'WebCore/html/canvas/Int16Array.cpp')
-rw-r--r-- | WebCore/html/canvas/Int16Array.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/WebCore/html/canvas/Int16Array.cpp b/WebCore/html/canvas/Int16Array.cpp index 635ea5e..a3d04bc 100644 --- a/WebCore/html/canvas/Int16Array.cpp +++ b/WebCore/html/canvas/Int16Array.cpp @@ -51,7 +51,12 @@ Int16Array::Int16Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsi { } -PassRefPtr<ArrayBufferView> Int16Array::slice(int start, int end) const +PassRefPtr<Int16Array> Int16Array::slice(int start) const +{ + return slice(start, length()); +} + +PassRefPtr<Int16Array> Int16Array::slice(int start, int end) const { return sliceImpl<Int16Array>(start, end); } |