diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-17 14:56:04 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-17 14:56:04 +0000 |
commit | c274c05249eea92bc428530838941669727b3491 (patch) | |
tree | 5c61efdb4100cdbc91ea5805fdbd706ae341b80e /views/widget | |
parent | cb952012ba56f85f8635fef775f3318b05cce62b (diff) | |
download | chromium_src-c274c05249eea92bc428530838941669727b3491.zip chromium_src-c274c05249eea92bc428530838941669727b3491.tar.gz chromium_src-c274c05249eea92bc428530838941669727b3491.tar.bz2 |
Make NativeWidgetViews::SchedulePaintInRect use
SchedulePaintInRectInternal. We need to do this so that the rootview
doesn't think its texture needs to be updated.
BUG=none
TEST=none
R=ben@chromium.org
Review URL: http://codereview.chromium.org/7192021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89482 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget')
-rw-r--r-- | views/widget/native_widget_view.cc | 4 | ||||
-rw-r--r-- | views/widget/native_widget_view.h | 3 | ||||
-rw-r--r-- | views/widget/native_widget_views.cc | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/views/widget/native_widget_view.cc b/views/widget/native_widget_view.cc index 3897129..ff26a06 100644 --- a/views/widget/native_widget_view.cc +++ b/views/widget/native_widget_view.cc @@ -29,6 +29,10 @@ Widget* NativeWidgetView::GetAssociatedWidget() { //////////////////////////////////////////////////////////////////////////////// // NativeWidgetView, View overrides: +void NativeWidgetView::SchedulePaintInternal(const gfx::Rect& r) { + View::SchedulePaintInternal(r); +} + void NativeWidgetView::ViewHierarchyChanged(bool is_add, View* parent, View* child) { if (is_add && child == this) diff --git a/views/widget/native_widget_view.h b/views/widget/native_widget_view.h index ee0ab01..5359eba 100644 --- a/views/widget/native_widget_view.h +++ b/views/widget/native_widget_view.h @@ -38,6 +38,9 @@ class NativeWidgetView : public View { Widget* GetAssociatedWidget(); + // Overridden from View: + virtual void SchedulePaintInternal(const gfx::Rect& r) OVERRIDE; + private: // Overridden from View: virtual void ViewHierarchyChanged(bool is_add, diff --git a/views/widget/native_widget_views.cc b/views/widget/native_widget_views.cc index dfdd553..aaefa1a 100644 --- a/views/widget/native_widget_views.cc +++ b/views/widget/native_widget_views.cc @@ -314,7 +314,7 @@ void NativeWidgetViews::RunShellDrag(View* view, } void NativeWidgetViews::SchedulePaintInRect(const gfx::Rect& rect) { - view_->SchedulePaintInRect(rect); + view_->SchedulePaintInternal(rect); } void NativeWidgetViews::SetCursor(gfx::NativeCursor cursor) { |