| Index: Source/core/html/ImageData.cpp
|
| diff --git a/Source/core/html/ImageData.cpp b/Source/core/html/ImageData.cpp
|
| index 66b62ffe04950d7400cb242a80871f4918dcdb2a..4313235538fe9ed050d52761bc4bcd3babfcd08d 100644
|
| --- a/Source/core/html/ImageData.cpp
|
| +++ b/Source/core/html/ImageData.cpp
|
| @@ -64,10 +64,6 @@ ImageData* ImageData::create(const IntSize& size, PassRefPtr<DOMUint8ClampedArra
|
|
|
| ImageData* ImageData::create(unsigned width, unsigned height, ExceptionState& exceptionState)
|
| {
|
| - if (!RuntimeEnabledFeatures::imageDataConstructorEnabled()) {
|
| - exceptionState.throwTypeError("Illegal constructor");
|
| - return nullptr;
|
| - }
|
| if (!width || !height) {
|
| exceptionState.throwDOMException(IndexSizeError, String::format("The source %s is zero or not a number.", width ? "height" : "width"));
|
| return nullptr;
|
| @@ -111,10 +107,6 @@ bool ImageData::validateConstructorArguments(DOMUint8ClampedArray* data, unsigne
|
|
|
| ImageData* ImageData::create(DOMUint8ClampedArray* data, unsigned width, ExceptionState& exceptionState)
|
| {
|
| - if (!RuntimeEnabledFeatures::imageDataConstructorEnabled()) {
|
| - exceptionState.throwTypeError("Illegal constructor");
|
| - return nullptr;
|
| - }
|
| unsigned lengthInPixels = 0;
|
| if (!validateConstructorArguments(data, width, lengthInPixels, exceptionState)) {
|
| ASSERT(exceptionState.hadException());
|
| @@ -127,10 +119,6 @@ ImageData* ImageData::create(DOMUint8ClampedArray* data, unsigned width, Excepti
|
|
|
| ImageData* ImageData::create(DOMUint8ClampedArray* data, unsigned width, unsigned height, ExceptionState& exceptionState)
|
| {
|
| - if (!RuntimeEnabledFeatures::imageDataConstructorEnabled()) {
|
| - exceptionState.throwTypeError("Illegal constructor");
|
| - return nullptr;
|
| - }
|
| unsigned lengthInPixels = 0;
|
| if (!validateConstructorArguments(data, width, lengthInPixels, exceptionState)) {
|
| ASSERT(exceptionState.hadException());
|
|
|