Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 5425a4d7bc767c9d66275b496c4846f902399479 1 parent 4dd92d0
authored June 21, 2012
3  Source/WebCore/platform/graphics/android/layers/LayerAndroid.cpp
@@ -289,6 +289,9 @@ void LayerAndroid::addDirtyArea()
289 289
     IntRect dirtyArea(area.x(), area.y(), area.width(), area.height());
290 290
 
291 291
     state()->addDirtyArea(dirtyArea);
  292
+
  293
+    for (int i = 0; i < countChildren(); i++)
  294
+        getChild(i)->addDirtyArea();
292 295
 }
293 296
 
294 297
 void LayerAndroid::addAnimation(PassRefPtr<AndroidAnimation> prpAnim)

0 notes on commit 5425a4d

Please sign in to comment.
Something went wrong with that request. Please try again.