Bug 810275 - Remove the inactive layer tree offset when compute the active scrolled root position. r=roc

This commit is contained in:
Matt Woodrow 2012-11-22 18:33:37 +13:00
Родитель 49219cce40
Коммит 773bc1d51b
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1407,7 +1407,7 @@ ContainerState::CreateOrRecycleThebesLayer(const nsIFrame* aActiveScrolledRoot,
#ifndef MOZ_ANDROID_OMTC
// Calculate exact position of the top-left of the active scrolled root.
// This might not be 0,0 due to the snapping in ScaleToNearestPixels.
gfxPoint activeScrolledRootTopLeft = scaledOffset - matrix.GetTranslation();
gfxPoint activeScrolledRootTopLeft = scaledOffset - matrix.GetTranslation() + mParameters.mOffset;
// If it has changed, then we need to invalidate the entire layer since the
// pixels in the layer buffer have the content at a (subpixel) offset
// from what we need.