| Index: third_party/WebKit/Source/wtf/Int8Array.h
|
| diff --git a/third_party/WebKit/Source/wtf/Int8Array.h b/third_party/WebKit/Source/wtf/Int8Array.h
|
| index 698504fd61133f99ff6747828a007ff6395933fb..189ad6848b65e79f6f2a2ef70f7998ee9df6d6fb 100644
|
| --- a/third_party/WebKit/Source/wtf/Int8Array.h
|
| +++ b/third_party/WebKit/Source/wtf/Int8Array.h
|
| @@ -34,47 +34,50 @@ namespace WTF {
|
| class ArrayBuffer;
|
|
|
| class Int8Array final : public IntegralTypedArrayBase<signed char> {
|
| -public:
|
| - static inline PassRefPtr<Int8Array> create(unsigned length);
|
| - static inline PassRefPtr<Int8Array> create(const signed char* array, unsigned length);
|
| - static inline PassRefPtr<Int8Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
|
| + public:
|
| + static inline PassRefPtr<Int8Array> create(unsigned length);
|
| + static inline PassRefPtr<Int8Array> create(const signed char* array,
|
| + unsigned length);
|
| + static inline PassRefPtr<Int8Array> create(PassRefPtr<ArrayBuffer>,
|
| + unsigned byteOffset,
|
| + unsigned length);
|
|
|
| - using TypedArrayBase<signed char>::set;
|
| - using IntegralTypedArrayBase<signed char>::set;
|
| + using TypedArrayBase<signed char>::set;
|
| + using IntegralTypedArrayBase<signed char>::set;
|
|
|
| - ViewType type() const override
|
| - {
|
| - return TypeInt8;
|
| - }
|
| + ViewType type() const override { return TypeInt8; }
|
|
|
| -private:
|
| - inline Int8Array(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
|
| - // Make constructor visible to superclass.
|
| - friend class TypedArrayBase<signed char>;
|
| + private:
|
| + inline Int8Array(PassRefPtr<ArrayBuffer>,
|
| + unsigned byteOffset,
|
| + unsigned length);
|
| + // Make constructor visible to superclass.
|
| + friend class TypedArrayBase<signed char>;
|
| };
|
|
|
| -PassRefPtr<Int8Array> Int8Array::create(unsigned length)
|
| -{
|
| - return TypedArrayBase<signed char>::create<Int8Array>(length);
|
| +PassRefPtr<Int8Array> Int8Array::create(unsigned length) {
|
| + return TypedArrayBase<signed char>::create<Int8Array>(length);
|
| }
|
|
|
| -PassRefPtr<Int8Array> Int8Array::create(const signed char* array, unsigned length)
|
| -{
|
| - return TypedArrayBase<signed char>::create<Int8Array>(array, length);
|
| +PassRefPtr<Int8Array> Int8Array::create(const signed char* array,
|
| + unsigned length) {
|
| + return TypedArrayBase<signed char>::create<Int8Array>(array, length);
|
| }
|
|
|
| -PassRefPtr<Int8Array> Int8Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
|
| -{
|
| - return TypedArrayBase<signed char>::create<Int8Array>(buffer, byteOffset, length);
|
| +PassRefPtr<Int8Array> Int8Array::create(PassRefPtr<ArrayBuffer> buffer,
|
| + unsigned byteOffset,
|
| + unsigned length) {
|
| + return TypedArrayBase<signed char>::create<Int8Array>(buffer, byteOffset,
|
| + length);
|
| }
|
|
|
| -Int8Array::Int8Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
|
| - : IntegralTypedArrayBase<signed char>(buffer, byteOffset, length)
|
| -{
|
| -}
|
| +Int8Array::Int8Array(PassRefPtr<ArrayBuffer> buffer,
|
| + unsigned byteOffset,
|
| + unsigned length)
|
| + : IntegralTypedArrayBase<signed char>(buffer, byteOffset, length) {}
|
|
|
| -} // namespace WTF
|
| +} // namespace WTF
|
|
|
| using WTF::Int8Array;
|
|
|
| -#endif // Int8Array_h
|
| +#endif // Int8Array_h
|
|
|