Bug 941210 - APZCTreeManager builds a wrong APZC tree for some layer trees. r=kats

This commit is contained in:
Botond Ballo 2013-11-20 15:27:40 -05:00
parent 10c4c9ddb1
commit d1cce81fc7

View File

@ -213,7 +213,9 @@ APZCTreeManager::UpdatePanZoomControllerTree(CompositorParent* aCompositor,
}
uint64_t childLayersId = (aLayer->AsRefLayer() ? aLayer->AsRefLayer()->GetReferentId() : aLayersId);
AsyncPanZoomController* next = nullptr;
// If there's no APZC at this level, any APZCs for our child layers will
// have our siblings as siblings.
AsyncPanZoomController* next = apzc ? nullptr : aNextSibling;
for (Layer* child = aLayer->GetLastChild(); child; child = child->GetPrevSibling()) {
next = UpdatePanZoomControllerTree(aCompositor, child, childLayersId, aTransform, aParent, next,
aIsFirstPaint, aFirstPaintLayersId, aApzcsToDestroy);