summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-31 18:28:39 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-31 18:28:39 +0000
commit714e8bd3936c913c0c8369454646326524cb4c1f (patch)
tree89a3533467e5beb7efbfb60385d2a1e0e4d87942 /chrome/browser/autocomplete
parentdaf2d8aecbf2f29e5760c5f3d0b2f68f9bc77ce2 (diff)
downloadchromium_src-714e8bd3936c913c0c8369454646326524cb4c1f.zip
chromium_src-714e8bd3936c913c0c8369454646326524cb4c1f.tar.gz
chromium_src-714e8bd3936c913c0c8369454646326524cb4c1f.tar.bz2
GTK: more location bar updates.
- resize/move the autocomplete popup. - move the location icon to the left. - adjust some padding values. BUG=37866 TEST=visual Review URL: http://codereview.chromium.org/1577003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43241 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete')
-rw-r--r--chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc b/chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc
index 024d7d0..9335c5c 100644
--- a/chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc
+++ b/chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc
@@ -51,10 +51,9 @@ const int kIconWidth = 16;
// We want to vertically center the image in the result space.
const int kIconTopPadding = 4;
// Space between the left edge (including the border) and the text.
-const int kIconLeftPadding = 6 + kBorderThickness;
-// Space between the image and the text. Would be 6 to line up with the
-// entry, but nudge it a bit more to match with the text in the entry.
-const int kIconRightPadding = 10;
+const int kIconLeftPadding = 5 + kBorderThickness;
+// Space between the image and the text.
+const int kIconRightPadding = 5;
// Space between the left edge (including the border) and the text.
const int kIconAreaWidth =
kIconLeftPadding + kIconWidth + kIconRightPadding;
@@ -401,8 +400,6 @@ gboolean AutocompletePopupViewGtk::HandleExpose(GtkWidget* widget,
pango_layout_set_height(layout_, kHeightPerResult * PANGO_SCALE);
- // TODO(deanm): Intersect the line and damage rects, and only repaint and
- // layout the lines that are actually damaged. For now paint everything.
for (size_t i = 0; i < result.size(); ++i) {
gfx::Rect line_rect = GetRectForLine(i, window_rect.width());
// Only repaint and layout damaged lines.