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

Unified Diff: third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp

Issue 2858963002: Replace ASSERT with DCHECK in core/ (Closed)
Patch Set: WorkerBackingThread Created 3 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
Index: third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp
diff --git a/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp b/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp
index 482ec20ca7b35e03679c10a41d6b6972a8f04408..8c6f54013b3f445c0d0cc2fa5c83a3f7e57053df 100644
--- a/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp
+++ b/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp
@@ -191,7 +191,7 @@ ImageBitmapFactories& ImageBitmapFactories::From(EventTarget& event_target) {
if (LocalDOMWindow* window = event_target.ToLocalDOMWindow())
return FromInternal(*window);
- ASSERT(event_target.GetExecutionContext()->IsWorkerGlobalScope());
+ DCHECK(event_target.GetExecutionContext()->IsWorkerGlobalScope());
return ImageBitmapFactories::FromInternal(
*ToWorkerGlobalScope(event_target.GetExecutionContext()));
}
@@ -212,7 +212,7 @@ void ImageBitmapFactories::AddLoader(ImageBitmapLoader* loader) {
}
void ImageBitmapFactories::DidFinishLoading(ImageBitmapLoader* loader) {
- ASSERT(pending_loaders_.Contains(loader));
+ DCHECK(pending_loaders_.Contains(loader));
pending_loaders_.erase(loader);
}
@@ -277,7 +277,7 @@ void ImageBitmapFactories::ImageBitmapLoader::DecodeImageOnDecoderThread(
DOMArrayBuffer* array_buffer,
const String& premultiply_alpha_option,
const String& color_space_conversion_option) {
- ASSERT(!IsMainThread());
+ DCHECK(!IsMainThread());
ImageDecoder::AlphaOption alpha_op = ImageDecoder::kAlphaPremultiplied;
if (premultiply_alpha_option == "none")
« no previous file with comments | « third_party/WebKit/Source/core/html/canvas/CanvasFontCache.cpp ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698