summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-03 01:06:46 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-03 01:06:46 +0000
commitc8f3a88be96a3296d9e8ff63b2ae8fa66349f10a (patch)
treebd126e6136be7ff9d3351a1f7ba2ae727595b0a2 /chrome
parent6772701a7aeffa8eed010806db52eed63fd0f023 (diff)
downloadchromium_src-c8f3a88be96a3296d9e8ff63b2ae8fa66349f10a.zip
chromium_src-c8f3a88be96a3296d9e8ff63b2ae8fa66349f10a.tar.gz
chromium_src-c8f3a88be96a3296d9e8ff63b2ae8fa66349f10a.tar.bz2
[GTK] Remove reference to obsolete constant.
TBR=ncarter TEST=compile; also autocomplete popup text aligns with omnibox text Review URL: http://codereview.chromium.org/3053036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54656 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc15
1 files changed, 2 insertions, 13 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc b/chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc
index 87ea9fc..bf28f0e 100644
--- a/chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc
+++ b/chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc
@@ -568,17 +568,6 @@ gboolean AutocompletePopupViewGtk::HandleExpose(GtkWidget* widget,
pango_layout_set_height(layout_, kHeightPerResult * PANGO_SCALE);
- // An offset to align text in gtk mode. The hard coded constants in this file
- // are all created for the chrome-theme. In an effort to make this look good
- // on the majority of gtk themes, we shrink the popup by one pixel on each
- // side and push it downwards a bit so there's space between the drawn
- // location bar and the popup so we don't touch it (contrast with
- // chrome-theme where that's exactly what we want). Because of that, we need
- // to shift the content inside the popup by one pixel.
- int gtk_offset = 0;
- if (theme_provider_->UseGtkTheme())
- gtk_offset = kGtkHorizontalOffset;
-
for (size_t i = 0; i < result.size(); ++i) {
gfx::Rect line_rect = GetRectForLine(i, window_rect.width());
// Only repaint and layout damaged lines.
@@ -597,8 +586,8 @@ gboolean AutocompletePopupViewGtk::HandleExpose(GtkWidget* widget,
line_rect.width(), line_rect.height());
}
- int icon_start_x = ltr ? (kIconLeftPadding - gtk_offset) :
- (line_rect.width() - kIconLeftPadding - kIconWidth + gtk_offset);
+ int icon_start_x = ltr ? (kIconLeftPadding) :
+ (line_rect.width() - kIconLeftPadding - kIconWidth);
// Draw the icon for this result.
DrawFullPixbuf(drawable, gc,
IconForMatch(match, is_selected),