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

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

Issue 1800373002: [MD] replace infobar bottom solid line separator with a shadow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits 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: chrome/browser/ui/views/frame/browser_view_layout.cc
diff --git a/chrome/browser/ui/views/frame/browser_view_layout.cc b/chrome/browser/ui/views/frame/browser_view_layout.cc
index 67edff3ffe395d9db05dbe8f93ebd98ddce5a427..1cfcf5d626590b6ec25de78afcb3b9e5c2b46001 100644
--- a/chrome/browser/ui/views/frame/browser_view_layout.cc
+++ b/chrome/browser/ui/views/frame/browser_view_layout.cc
@@ -467,13 +467,10 @@ int BrowserViewLayout::LayoutInfoBar(int top) {
}
// Raise the |infobar_container_| by its vertical overlap.
infobar_container_->SetVisible(InfobarVisible());
- int height;
- int overlapped_top = top - infobar_container_->GetVerticalOverlap(&height);
- infobar_container_->SetBounds(vertical_layout_rect_.x(),
- overlapped_top,
- vertical_layout_rect_.width(),
- height);
- return overlapped_top + height;
+ infobar_container_->SetBounds(
+ vertical_layout_rect_.x(), top, vertical_layout_rect_.width(),
+ infobar_container_->GetPreferredSize().height());
+ return top + infobar_container_->height();
}
void BrowserViewLayout::LayoutContentsContainerView(int top, int bottom) {
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/infobars/infobar_container_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698