Permalink
Browse files

Make viewport dirtyness calculations recursive

If a layer marks the viewport dirty, it should mark all of its children as well,
since they likely have also moved.

bug:6547356
Change-Id: I0db2704f35e7c8a78108d6ed8372201a7f025994
  • Loading branch information...
ChrisCraik committed Jun 21, 2012
1 parent 4dd92d0 commit 5425a4d7bc767c9d66275b496c4846f902399479
Showing with 3 additions and 0 deletions.
  1. +3 −0 Source/WebCore/platform/graphics/android/layers/LayerAndroid.cpp
@@ -289,6 +289,9 @@ void LayerAndroid::addDirtyArea()
IntRect dirtyArea(area.x(), area.y(), area.width(), area.height());
state()->addDirtyArea(dirtyArea);
+
+ for (int i = 0; i < countChildren(); i++)
+ getChild(i)->addDirtyArea();
}
void LayerAndroid::addAnimation(PassRefPtr<AndroidAnimation> prpAnim)

0 comments on commit 5425a4d

Please sign in to comment.