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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_container_aura.cc

Issue 10907038: alternate ntp: clip middle omnibox when resizing browser window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-implement fix Created 8 years, 3 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/location_bar/location_bar_container_aura.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_container_aura.cc b/chrome/browser/ui/views/location_bar/location_bar_container_aura.cc
index 44cebd110e01aa01def4f081bf622fc00683df95..b258e4ef8fb9fc56f46361f24ec439879324e07b 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_container_aura.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_container_aura.cc
@@ -13,6 +13,7 @@ void LocationBarContainer::SetInToolbar(bool in_toolbar) {
SetPaintToLayer(!in_toolbar);
if (!in_toolbar) {
layer()->SetFillsBoundsOpaquely(false);
+ layer()->SetMasksToBounds(true);
sky 2012/09/12 21:07:31 Add a comment why you need this.
kuan 2012/09/12 21:33:04 Done.
StackAtTop();
}
}

Powered by Google App Engine
This is Rietveld 408576698