Commit 21a88094 authored by Peter Kasting's avatar Peter Kasting Committed by Commit Bot

Account for TABSTRIP_TOOLBAR_OVERLAP in opaque frame top height.

This seems to affect only the painting of the frame background and Linux caption
buttons.  In testing the first and from code inspection of the second, both seem
to want "the actual height above the toolbar", which doesn't include this
overlap.

This eliminates an ugly 1 DIP misalignment of the theme background image bottom
with the toolbar top in some themes.

Bug: 866671
Change-Id: I55d1aea4c3af656ae427373dff9bacc76bb932ab
Reviewed-on: https://chromium-review.googlesource.com/1157875
Commit-Queue: Bret Sepulveda <bsep@chromium.org>
Reviewed-by: default avatarBret Sepulveda <bsep@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579980}
parent 09236caf
...@@ -451,7 +451,8 @@ int OpaqueBrowserFrameView::GetTopAreaHeight() const { ...@@ -451,7 +451,8 @@ int OpaqueBrowserFrameView::GetTopAreaHeight() const {
if (browser_view()->IsTabStripVisible()) { if (browser_view()->IsTabStripVisible()) {
top_area_height = top_area_height =
std::max(top_area_height, std::max(top_area_height,
GetBoundsForTabStrip(browser_view()->tabstrip()).bottom()); GetBoundsForTabStrip(browser_view()->tabstrip()).bottom() -
GetLayoutConstant(TABSTRIP_TOOLBAR_OVERLAP));
} }
return top_area_height; return top_area_height;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment