summaryrefslogtreecommitdiffstats
path: root/chrome/views/root_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/views/root_view.cc')
-rw-r--r--chrome/views/root_view.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/views/root_view.cc b/chrome/views/root_view.cc
index 5e7beff..db6c80a 100644
--- a/chrome/views/root_view.cc
+++ b/chrome/views/root_view.cc
@@ -203,8 +203,7 @@ CRect RootView::GetScheduledPaintRectConstrainedToSize() {
if (invalid_rect_.IsRectEmpty())
return invalid_rect_;
- CRect local_bounds;
- GetLocalBounds(&local_bounds, true);
+ CRect local_bounds = GetLocalBounds(true).ToRECT();
CRect invalid_rect;
invalid_rect.IntersectRect(&invalid_rect_, &local_bounds);
return invalid_rect;