Index: views/widget/root_view.cc |
diff --git a/views/widget/root_view.cc b/views/widget/root_view.cc |
index 85cb53736ea5ae2aa52b4bdf1780e4f299d12355..eeea65eb5c5121269d52dc932571fa5d5106282d 100644 |
--- a/views/widget/root_view.cc |
+++ b/views/widget/root_view.cc |
@@ -12,6 +12,7 @@ |
#include "ui/base/dragdrop/drag_drop_types.h" |
#include "ui/base/keycodes/keyboard_codes.h" |
#include "ui/gfx/canvas_skia.h" |
+#include "ui/gfx/transform.h" |
#include "views/focus/view_storage.h" |
#include "views/layout/fill_layout.h" |
#include "views/touchui/gesture_manager.h" |
@@ -155,6 +156,10 @@ std::string RootView::GetClassName() const { |
return kViewClassName; |
} |
+void RootView::ScheduleComposite() { |
+ widget_->SchedulePaintInRect(widget_->GetClientAreaScreenBounds()); |
sky
2011/08/17 16:39:42
Why is this asking to paint in terms of screen coo
|
+} |
+ |
void RootView::SchedulePaintInRect(const gfx::Rect& rect) { |
MarkLayerDirty(); |
SchedulePaintInternal(rect); |
@@ -163,8 +168,9 @@ void RootView::SchedulePaintInRect(const gfx::Rect& rect) { |
void RootView::SchedulePaintInternal(const gfx::Rect& rect) { |
gfx::Rect xrect = ConvertRectToParent(rect); |
gfx::Rect invalid_rect = GetLocalBounds().Intersect(xrect); |
- if (!invalid_rect.IsEmpty()) |
+ if (!invalid_rect.IsEmpty()) { |
sky
2011/08/17 16:39:42
no {}
|
widget_->SchedulePaintInRect(invalid_rect); |
+ } |
} |
bool RootView::OnMousePressed(const MouseEvent& event) { |