| Index: sky/engine/core/html/canvas/DataView.cpp
|
| diff --git a/sky/engine/core/html/canvas/DataView.cpp b/sky/engine/core/html/canvas/DataView.cpp
|
| index 104d4998c0e541b8391724fb9cdb8f41f6384547..afdc8d6f9c260228bb365cf564933d02adc9cd4f 100644
|
| --- a/sky/engine/core/html/canvas/DataView.cpp
|
| +++ b/sky/engine/core/html/canvas/DataView.cpp
|
| @@ -26,9 +26,7 @@
|
| #include "sky/engine/config.h"
|
| #include "sky/engine/core/html/canvas/DataView.h"
|
|
|
| -#include "sky/engine/bindings/core/v8/ExceptionState.h"
|
| -#include "sky/engine/bindings/core/v8/custom/V8DataViewCustom.h"
|
| -#include "sky/engine/bindings/core/v8/custom/V8TypedArrayCustom.h"
|
| +#include "sky/engine/bindings2/exception_state.h"
|
| #include "sky/engine/core/dom/ExceptionCode.h"
|
| #include "sky/engine/platform/CheckedInt.h"
|
| #include "sky/engine/wtf/CPU.h"
|
| @@ -134,7 +132,7 @@ template<typename T>
|
| T DataView::getData(unsigned byteOffset, bool littleEndian, ExceptionState& exceptionState) const
|
| {
|
| if (beyondRange<T>(byteOffset)) {
|
| - exceptionState.throwDOMException(IndexSizeError, "The provided offset (" + String::number(byteOffset) + ") is outside the allowed range.");
|
| + exceptionState.ThrowDOMException(IndexSizeError, "The provided offset (" + String::number(byteOffset) + ") is outside the allowed range.");
|
| return 0;
|
| }
|
|
|
| @@ -149,7 +147,7 @@ template<typename T>
|
| void DataView::setData(unsigned byteOffset, T value, bool littleEndian, ExceptionState& exceptionState)
|
| {
|
| if (beyondRange<T>(byteOffset)) {
|
| - exceptionState.throwDOMException(IndexSizeError, "The provided offset (" + String::number(byteOffset) + ") is outside the allowed range.");
|
| + exceptionState.ThrowDOMException(IndexSizeError, "The provided offset (" + String::number(byteOffset) + ") is outside the allowed range.");
|
| return;
|
| }
|
|
|
| @@ -240,11 +238,6 @@ void DataView::setFloat64(unsigned byteOffset, double value, bool littleEndian,
|
| setData<double>(byteOffset, value, littleEndian, exceptionState);
|
| }
|
|
|
| -v8::Handle<v8::Object> DataView::wrap(v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
|
| -{
|
| - return V8TypedArray<DataView>::wrap(this, creationContext, isolate);
|
| -}
|
| -
|
| void DataView::neuter()
|
| {
|
| ArrayBufferView::neuter();
|
|
|