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

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: addressed david's comments 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..5a9362d999c70e7a9f44560b41a915fec0a2cbc1 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,8 @@ void LocationBarContainer::SetInToolbar(bool in_toolbar) {
SetPaintToLayer(!in_toolbar);
if (!in_toolbar) {
layer()->SetFillsBoundsOpaquely(false);
+ // Allows clipping of children.
sky 2012/09/13 19:58:24 This comment duplicates what the code is doing. In
kuan 2012/09/13 20:13:28 Done.
+ layer()->SetMasksToBounds(true);
StackAtTop();
}
}

Powered by Google App Engine
This is Rietveld 408576698