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

Unified Diff: third_party/WebKit/Source/web/DragClientImpl.cpp

Issue 1839643009: RELEASE_ASSERT -> CHECK and ASSERT -> DCHECK in web. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation. Created 4 years, 9 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/web/DragClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/DragClientImpl.cpp b/third_party/WebKit/Source/web/DragClientImpl.cpp
index 052a6333ae84b046747098798bf474f6399ddce0..0cbb4c4fba4b8b4a458de07e1775825dea2c5251 100644
--- a/third_party/WebKit/Source/web/DragClientImpl.cpp
+++ b/third_party/WebKit/Source/web/DragClientImpl.cpp
@@ -72,7 +72,7 @@ void DragClientImpl::startDrag(DragImage* dragImage, const IntPoint& dragImageOr
float deviceScaleFactor =
m_webView->client()->screenInfo().deviceScaleFactor;
if (deviceScaleFactor != resolutionScale) {
- ASSERT(resolutionScale > 0);
+ DCHECK_GT(resolutionScale, 0);
float scale = deviceScaleFactor / resolutionScale;
dragImage->scale(scale, scale);
}

Powered by Google App Engine
This is Rietveld 408576698