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

Unified Diff: Source/platform/graphics/BitmapImage.cpp

Issue 1181963006: Removing unnecessary assert from BitmapImage::draw (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: remove assert Created 5 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/BitmapImage.cpp
diff --git a/Source/platform/graphics/BitmapImage.cpp b/Source/platform/graphics/BitmapImage.cpp
index 7f990014462eb2d2f801cf4c04a5c7a44f9331f8..202295c050ed8142c5fa8acc7544ae4ab41ebeca 100644
--- a/Source/platform/graphics/BitmapImage.cpp
+++ b/Source/platform/graphics/BitmapImage.cpp
@@ -300,8 +300,6 @@ void BitmapImage::draw(SkCanvas* canvas, const SkPaint& paint, const FloatRect&
{
TRACE_EVENT0("skia", "BitmapImage::draw");
- ASSERT(dstRect.width() >= 0 && dstRect.height() >= 0);
- ASSERT(srcRect.width() >= 0 && srcRect.height() >= 0);
SkBitmap bitmap;
if (!bitmapForCurrentFrame(&bitmap))
return; // It's too early and we don't have an image yet.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698