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

Unified Diff: chrome/browser/ui/views/frame/browser_view_layout.cc

Issue 6788014: Fix DCHECK() in infobar animation. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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: chrome/browser/ui/views/frame/browser_view_layout.cc
===================================================================
--- chrome/browser/ui/views/frame/browser_view_layout.cc (revision 80169)
+++ chrome/browser/ui/views/frame/browser_view_layout.cc (working copy)
@@ -367,8 +367,8 @@
infobar_container_->SetVisible(visible);
int height = infobar_container_->GetPreferredSize().height();
DCHECK(visible || !height) << "Invisible InfoBarContainer has height.";
- int overlapped_top = top -
- static_cast<InfoBarContainerView*>(infobar_container_)->VerticalOverlap();
+ int overlapped_top = top - static_cast<InfoBarContainerView*>(
+ infobar_container_)->GetVerticalOverlap();
infobar_container_->SetBounds(vertical_layout_rect_.x(),
overlapped_top,
vertical_layout_rect_.width(),
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/infobars/extension_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698