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

Unified Diff: ui/views/view.cc

Issue 1421483005: Reland: Remove DCHECK_IMPLIES/CHECK_IMPLIES. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | « ui/views/touchui/touch_selection_menu_runner_views.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index 6378432a651f85314cfe65944a388ddabcbe87f0..0fc755972d6d57de055a7ea9d31fa11733eaf13b 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -742,7 +742,7 @@ void View::Paint(const ui::PaintContext& parent_context) {
if (!layer()) {
// If the View has a layer() then it is a paint root. Otherwise, we need to
// add the offset from the parent into the total offset from the paint root.
- DCHECK_IMPLIES(!parent(), bounds().origin() == gfx::Point());
+ DCHECK(parent() || bounds().origin() == gfx::Point());
offset_to_parent = GetMirroredPosition().OffsetFromOrigin();
}
ui::PaintContext context(parent_context, offset_to_parent);
« no previous file with comments | « ui/views/touchui/touch_selection_menu_runner_views.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698