summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/bookmark_table_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/bookmark_table_view.cc')
-rw-r--r--chrome/browser/views/bookmark_table_view.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/chrome/browser/views/bookmark_table_view.cc b/chrome/browser/views/bookmark_table_view.cc
index edbedf0..c1b4023 100644
--- a/chrome/browser/views/bookmark_table_view.cc
+++ b/chrome/browser/views/bookmark_table_view.cc
@@ -4,8 +4,6 @@
#include "chrome/browser/views/bookmark_table_view.h"
-#include <commctrl.h>
-
#include "app/drag_drop_types.h"
#include "app/gfx/chrome_canvas.h"
#include "app/gfx/chrome_font.h"
@@ -432,12 +430,11 @@ void BookmarkTableView::PaintAltText() {
gfx::Rect BookmarkTableView::GetAltTextBounds() {
static const int kXOffset = 16;
DCHECK(GetNativeControlHWND());
- RECT client_rect_rect;
- GetClientRect(GetNativeControlHWND(), &client_rect_rect);
- gfx::Rect client_rect(client_rect_rect);
+ CRect client_rect;
+ GetClientRect(GetNativeControlHWND(), client_rect);
ChromeFont font = GetAltTextFont();
// Pad height by 2 for halo.
- return gfx::Rect(kXOffset, content_offset(), client_rect.width() - kXOffset,
+ return gfx::Rect(kXOffset, content_offset(), client_rect.Width() - kXOffset,
std::max(kImageSize, font.height() + 2));
}