Bug 539356 - Handled scrolled inactive layers trees correctly. r=roc

This commit is contained in:
Matt Woodrow
2012-09-17 10:57:22 +12:00
parent f54d0a0265
commit c2045c9636
3 changed files with 13 additions and 0 deletions

View File

@@ -91,6 +91,8 @@ struct LayerPropertiesBase : public LayerProperties
virtual nsIntRect ComputeDifferences(Layer* aRoot,
NotifySubDocInvalidationFunc aCallback);
virtual void MoveBy(const nsIntPoint& aOffset);
nsIntRect ComputeChange(NotifySubDocInvalidationFunc aCallback)
{
bool transformChanged = mTransform != mLayer->GetTransform();
@@ -328,6 +330,12 @@ LayerPropertiesBase::ComputeDifferences(Layer* aRoot, NotifySubDocInvalidationFu
return ComputeChange(aCallback);
}
}
void
LayerPropertiesBase::MoveBy(const nsIntPoint& aOffset)
{
mTransform.TranslatePost(gfxPoint3D(aOffset.x, aOffset.y, 0));
}
} // namespace layers
} // namespace mozilla