Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(769)

Unified Diff: Source/core/html/ImageData.cpp

Issue 1122403007: Remove ImageDataConstructor runtime flag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « no previous file | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698