diff options
author | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-15 17:49:19 +0000 |
---|---|---|
committer | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-15 17:49:19 +0000 |
commit | b7ca15e0d73295f77d0877b766d3283b51eced20 (patch) | |
tree | 1f7a088bcfa3dec1a190f56e8179b42580b026ab /views | |
parent | 8ae6b1eaba16e5ae9ed8fac4fb3068881d705c66 (diff) | |
download | chromium_src-b7ca15e0d73295f77d0877b766d3283b51eced20.zip chromium_src-b7ca15e0d73295f77d0877b766d3283b51eced20.tar.gz chromium_src-b7ca15e0d73295f77d0877b766d3283b51eced20.tar.bz2 |
Don't schedule paint if one of view in parent chain is invisible
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7374007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92711 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/view.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/view.cc b/views/view.cc index ace1fcd..571395a 100644 --- a/views/view.cc +++ b/views/view.cc @@ -1169,7 +1169,7 @@ void View::PaintComposite() { } void View::SchedulePaintInternal(const gfx::Rect& rect) { - if (parent_) { + if (parent_ && parent_->IsVisible()) { // Translate the requested paint rect to the parent's coordinate system // then pass this notification up to the parent. parent_->SchedulePaintInternal(ConvertRectToParent(rect)); |