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