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

Unified Diff: third_party/WebKit/Source/core/frame/ImageBitmap.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/frame/ImageBitmap.cpp
diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
index 236964ce6e00a943dd13c332ca66afdc31bc8e5b..4534c55eb1614e0bb0386ceaf706b006d1db93e4 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
@@ -417,7 +417,7 @@ static PassRefPtr<StaticBitmapImage> CropImageAndApplyColorSpaceConversion(
ParsedOptions& parsed_options,
AlphaDisposition image_format,
ColorBehavior color_behavior) {
- ASSERT(image);
+ DCHECK(image);
IntRect img_rect(IntPoint(), IntSize(image->width(), image->height()));
const IntRect src_rect = Intersection(img_rect, parsed_options.crop_rect);
@@ -629,7 +629,7 @@ ImageBitmap::ImageBitmap(HTMLVideoElement* video,
ImageBitmap::ImageBitmap(HTMLCanvasElement* canvas,
Optional<IntRect> crop_rect,
const ImageBitmapOptions& options) {
- ASSERT(canvas->IsPaintable());
+ DCHECK(canvas->IsPaintable());
RefPtr<Image> input;
if (canvas->PlaceholderFrame()) {
input = canvas->PlaceholderFrame();
@@ -978,7 +978,7 @@ ImageBitmap::ImageBitmap(PassRefPtr<StaticBitmapImage> image) {
}
PassRefPtr<StaticBitmapImage> ImageBitmap::Transfer() {
- ASSERT(!IsNeutered());
+ DCHECK(!IsNeutered());
is_neutered_ = true;
image_->Transfer();
return std::move(image_);

Powered by Google App Engine
This is Rietveld 408576698