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

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

Issue 2741603002: Fix opaque frame popup titlebar not being painted. (Closed)
Patch Set: use max Created 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
diff --git a/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc b/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
index a9692e2119cfb976d2cea5a1a40d3a214d806fc1..edff63ecd53a3004932b144549a93b5fefaa7393 100644
--- a/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
+++ b/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
@@ -510,7 +510,8 @@ bool OpaqueBrowserFrameView::ShouldShowWindowTitleBar() const {
int OpaqueBrowserFrameView::GetTopAreaHeight() const {
const gfx::ImageSkia frame_image = GetFrameImage();
- int top_area_height = frame_image.height(); // Returns 0 if isNull().
+ int top_area_height =
+ std::max(frame_image.height(), layout_->NonClientTopHeight(false));
if (browser_view()->IsTabStripVisible()) {
top_area_height =
std::max(top_area_height,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698