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

Unified Diff: Source/modules/imagebitmap/ImageBitmapFactories.cpp

Issue 42883002: Ship DOM/Promises (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@websocket-inspector-ipc
Patch Set: rebase Created 7 years, 2 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 | « Source/core/dom/Promise.idl ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/imagebitmap/ImageBitmapFactories.cpp
diff --git a/Source/modules/imagebitmap/ImageBitmapFactories.cpp b/Source/modules/imagebitmap/ImageBitmapFactories.cpp
index 7f8bb59ca5de065300865040e7b4221428ac270e..2f34812f4a506012caed4be4f068e91cc70c85c2 100644
--- a/Source/modules/imagebitmap/ImageBitmapFactories.cpp
+++ b/Source/modules/imagebitmap/ImageBitmapFactories.cpp
@@ -31,7 +31,6 @@
#include "config.h"
#include "modules/imagebitmap/ImageBitmapFactories.h"
-#include "RuntimeEnabledFeatures.h"
#include "V8ImageBitmap.h"
#include "bindings/v8/ExceptionMessages.h"
#include "bindings/v8/ExceptionState.h"
@@ -69,8 +68,6 @@ static IntSize sizeFor(HTMLVideoElement* video)
static ScriptPromise fulfillImageBitmap(ExecutionContext* context, PassRefPtr<ImageBitmap> imageBitmap)
{
- // Promises must be enabled.
- ASSERT(RuntimeEnabledFeatures::promiseEnabled());
ScriptPromise promise = ScriptPromise::createPending(context);
RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(promise, context);
resolver->resolve(imageBitmap);
@@ -198,9 +195,6 @@ ScriptPromise ImageBitmapFactories::createImageBitmap(EventTarget* eventTarget,
ScriptPromise ImageBitmapFactories::createImageBitmap(EventTarget* eventTarget, Blob* blob, ExceptionState& es)
{
- // Promises must be enabled.
- ASSERT(RuntimeEnabledFeatures::promiseEnabled());
-
if (!blob) {
es.throwUninformativeAndGenericDOMException(TypeError);
return ScriptPromise();
@@ -215,9 +209,6 @@ ScriptPromise ImageBitmapFactories::createImageBitmap(EventTarget* eventTarget,
ScriptPromise ImageBitmapFactories::createImageBitmap(EventTarget* eventTarget, Blob* blob, int sx, int sy, int sw, int sh, ExceptionState& es)
{
- // Promises must be enabled.
- ASSERT(RuntimeEnabledFeatures::promiseEnabled());
-
if (!blob) {
es.throwUninformativeAndGenericDOMException(TypeError);
return ScriptPromise();
« no previous file with comments | « Source/core/dom/Promise.idl ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698