Index: third_party/WebKit/Source/wtf/Uint8ClampedArray.h |
diff --git a/third_party/WebKit/Source/wtf/Uint8ClampedArray.h b/third_party/WebKit/Source/wtf/Uint8ClampedArray.h |
index add0e4ad33fd60eea4d11c1ef907c7cde5202c5b..650249168cc25a292f4b271537b1275137082700 100644 |
--- a/third_party/WebKit/Source/wtf/Uint8ClampedArray.h |
+++ b/third_party/WebKit/Source/wtf/Uint8ClampedArray.h |
@@ -35,8 +35,9 @@ namespace WTF { |
class Uint8ClampedArray final : public Uint8Array { |
public: |
- static inline PassRefPtr<Uint8ClampedArray> create(unsigned length); |
- static inline PassRefPtr<Uint8ClampedArray> create(const unsigned char* array, unsigned length); |
+ static inline PassRefPtr<Uint8ClampedArray> createOrNull(unsigned length); |
+ static inline PassRefPtr<Uint8ClampedArray> createOrNull(const unsigned char* array, unsigned length); |
+ static inline PassRefPtr<Uint8ClampedArray> deprecatedCreateOrCrash(const unsigned char* array, unsigned length); |
static inline PassRefPtr<Uint8ClampedArray> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length); |
using TypedArrayBase<unsigned char>::set; |
@@ -53,14 +54,19 @@ private: |
friend class TypedArrayBase<unsigned char>; |
}; |
-PassRefPtr<Uint8ClampedArray> Uint8ClampedArray::create(unsigned length) |
+PassRefPtr<Uint8ClampedArray> Uint8ClampedArray::createOrNull(unsigned length) |
{ |
- return TypedArrayBase<unsigned char>::create<Uint8ClampedArray>(length); |
+ return TypedArrayBase<unsigned char>::createOrNull<Uint8ClampedArray>(length); |
} |
-PassRefPtr<Uint8ClampedArray> Uint8ClampedArray::create(const unsigned char* array, unsigned length) |
+PassRefPtr<Uint8ClampedArray> Uint8ClampedArray::createOrNull(const unsigned char* array, unsigned length) |
{ |
- return TypedArrayBase<unsigned char>::create<Uint8ClampedArray>(array, length); |
+ return TypedArrayBase<unsigned char>::createOrNull<Uint8ClampedArray>(array, length); |
+} |
+ |
+PassRefPtr<Uint8ClampedArray> Uint8ClampedArray::deprecatedCreateOrCrash(const unsigned char* array, unsigned length) |
+{ |
+ return TypedArrayBase<unsigned char>::deprecatedCreateOrCrash<Uint8ClampedArray>(array, length); |
} |
PassRefPtr<Uint8ClampedArray> Uint8ClampedArray::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) |