From 5425a4d7bc767c9d66275b496c4846f902399479 Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Thu, 21 Jun 2012 14:12:52 -0700 Subject: 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 --- Source/WebCore/platform/graphics/android/layers/LayerAndroid.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/WebCore/platform/graphics/android/layers') diff --git a/Source/WebCore/platform/graphics/android/layers/LayerAndroid.cpp b/Source/WebCore/platform/graphics/android/layers/LayerAndroid.cpp index d709a9c..228a30e 100644 --- a/Source/WebCore/platform/graphics/android/layers/LayerAndroid.cpp +++ b/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 prpAnim) -- cgit v1.1