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

Unified Diff: third_party/WebKit/Source/modules/plugins/PluginOcclusionSupport.cpp

Issue 2862963003: Replace ASSERT with DCHECK in modules/ (Closed)
Patch Set: NOTREACHED instead of DCHECK(false) 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/modules/plugins/PluginOcclusionSupport.cpp
diff --git a/third_party/WebKit/Source/modules/plugins/PluginOcclusionSupport.cpp b/third_party/WebKit/Source/modules/plugins/PluginOcclusionSupport.cpp
index 745a0efe6df96fd6c3d3f19c5114532b932d18af..4a7503c08f0ef9bdf6ed7b36b225fb88172946ae 100644
--- a/third_party/WebKit/Source/modules/plugins/PluginOcclusionSupport.cpp
+++ b/third_party/WebKit/Source/modules/plugins/PluginOcclusionSupport.cpp
@@ -110,7 +110,7 @@ static bool IframeIsAbovePlugin(
if (ro == ro2)
return true;
}
- ASSERT(false); // We should have seen ro1 and ro2 by now.
+ NOTREACHED(); // We should have seen ro1 and ro2 by now.
return false;
}
}
@@ -158,7 +158,7 @@ void GetPluginOcclusions(Element* element,
const IntRect& frame_rect,
Vector<IntRect>& occlusions) {
LayoutObject* plugin_node = element->GetLayoutObject();
- ASSERT(plugin_node);
+ DCHECK(plugin_node);
if (!plugin_node->Style())
return;
Vector<const LayoutObject*> plugin_zstack;

Powered by Google App Engine
This is Rietveld 408576698