summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/history_view.cc')
-rw-r--r--chrome/browser/history_view.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/history_view.cc b/chrome/browser/history_view.cc
index ef439eb..7ff4225 100644
--- a/chrome/browser/history_view.cc
+++ b/chrome/browser/history_view.cc
@@ -840,7 +840,8 @@ bool HistoryView::IsVisible() {
return vc && vc->IsVisible();
}
-void HistoryView::DidChangeBounds(const CRect& previous, const CRect& current) {
+void HistoryView::DidChangeBounds(const gfx::Rect& previous,
+ const gfx::Rect& current) {
SchedulePaint();
}
@@ -851,14 +852,13 @@ void HistoryView::Layout() {
if (!parent)
return;
- CRect bounds;
- parent->GetLocalBounds(&bounds, true);
+ gfx::Rect bounds = parent->GetLocalBounds(true);
// If not visible, have zero size so we don't compute anything.
int width = 0;
int height = 0;
if (IsVisible()) {
- width = bounds.Width();
+ width = bounds.width();
height = std::max(GetLastEntryMaxY(),
kEntryPadding + kNoResultTextHeight);
}