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

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 scott'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..0fa504d53bbd7d2ce15b90d6540fa02c5ea34ea2 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,10 @@ void LocationBarContainer::SetInToolbar(bool in_toolbar) {
SetPaintToLayer(!in_toolbar);
if (!in_toolbar) {
layer()->SetFillsBoundsOpaquely(false);
+ // The LocationBarView may be taller than us (otherwise the text gets
+ // squished in weird ways). To allow the LocationBarView to be taller yet
+ // clipped to our bounds, we explicity turn on clipping.
+ layer()->SetMasksToBounds(true);
StackAtTop();
}
}
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_container.cc ('k') | chrome/browser/ui/views/toolbar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698