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

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

Issue 187133003: linux_aura: Fix all instances of LabelButton sizing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert on the right branch. Created 6 years, 10 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 | 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: chrome/browser/ui/libgtk2ui/gtk2_border.cc
diff --git a/chrome/browser/ui/libgtk2ui/gtk2_border.cc b/chrome/browser/ui/libgtk2ui/gtk2_border.cc
index 9648a6926a124810fa0a5034f7efe6a8e85176ec..0ef1d97d781be7ff5930b06618ccc1f3707af08d 100644
--- a/chrome/browser/ui/libgtk2ui/gtk2_border.cc
+++ b/chrome/browser/ui/libgtk2ui/gtk2_border.cc
@@ -120,11 +120,7 @@ void Gtk2Border::Paint(const views::View& view, gfx::Canvas* canvas) {
}
gfx::Insets Gtk2Border::GetInsets() const {
- ui::ThemeProvider* provider = owning_button_->GetThemeProvider();
- if (!provider || !provider->UsingNativeTheme())
- return border_->GetInsets();
-
- return gtk2_ui_->GetButtonInsets();
+ return border_->GetInsets();
}
gfx::Size Gtk2Border::GetMinimumSize() const {
« no previous file with comments | « no previous file | chrome/browser/ui/views/fullscreen_exit_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698