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

Unified Diff: third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp

Issue 2490233002: Use unsigned longs in HTMLImageElement idl (Closed)
Patch Set: Fix compile error Created 4 years, 1 month 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 | « third_party/WebKit/Source/core/html/HTMLImageElement.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp
diff --git a/third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp b/third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp
index 037586df0949ead12c479b2844301c681a0e6350..eadf3eb0ae2c8255c96b8c4b276a634b3d7c8022 100644
--- a/third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp
+++ b/third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp
@@ -115,8 +115,8 @@ ScriptPromise FaceDetector::detectFacesOnImageElement(
}
const sk_sp<SkImage> image = blinkImage->imageForCurrentFrame();
- DCHECK_EQ(img->naturalWidth(), image->width());
- DCHECK_EQ(img->naturalHeight(), image->height());
+ DCHECK_EQ(img->naturalWidth(), static_cast<unsigned>(image->width()));
+ DCHECK_EQ(img->naturalHeight(), static_cast<unsigned>(image->height()));
if (!image) {
resolver->reject(DOMException::create(
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLImageElement.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698