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

Unified Diff: trunk/src/chrome/browser/ui/libgtk2ui/gtk2_border.cc

Issue 188893003: Revert 255091 "linux_aura: Fix all instances of LabelButton sizing." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 | trunk/src/chrome/browser/ui/views/fullscreen_exit_bubble_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/browser/ui/libgtk2ui/gtk2_border.cc
===================================================================
--- trunk/src/chrome/browser/ui/libgtk2ui/gtk2_border.cc (revision 255405)
+++ trunk/src/chrome/browser/ui/libgtk2ui/gtk2_border.cc (working copy)
@@ -120,7 +120,11 @@
}
gfx::Insets Gtk2Border::GetInsets() const {
- return border_->GetInsets();
+ ui::ThemeProvider* provider = owning_button_->GetThemeProvider();
+ if (!provider || !provider->UsingNativeTheme())
+ return border_->GetInsets();
+
+ return gtk2_ui_->GetButtonInsets();
}
gfx::Size Gtk2Border::GetMinimumSize() const {
« no previous file with comments | « no previous file | trunk/src/chrome/browser/ui/views/fullscreen_exit_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698