зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1018416. Inline TransformRegion.
--HG-- rename : dom/datastore/tests/test_bug957086.html => dom/datastore/tests/test_basic.html extra : rebase_source : ab175afb006c0f6ebb02863f510b6fdc6e578f3c
This commit is contained in:
Родитель
f1836096cc
Коммит
90bfe7361a
|
@ -69,14 +69,6 @@ AddRegion(nsIntRegion& aDest, const nsIntRegion& aSource)
|
||||||
aDest.SimplifyOutward(20);
|
aDest.SimplifyOutward(20);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static nsIntRegion
|
|
||||||
TransformRegion(nsIntRegion& aRegion, const gfx3DMatrix& aTransform)
|
|
||||||
{
|
|
||||||
aRegion.Transform(aTransform);
|
|
||||||
return aRegion;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Walks over this layer, and all descendant layers.
|
* Walks over this layer, and all descendant layers.
|
||||||
* If any of these are a ContainerLayer that reports invalidations to a PresShell,
|
* If any of these are a ContainerLayer that reports invalidations to a PresShell,
|
||||||
|
@ -325,7 +317,8 @@ struct ContainerLayerProperties : public LayerPropertiesBase
|
||||||
|
|
||||||
gfx3DMatrix transform;
|
gfx3DMatrix transform;
|
||||||
gfx::To3DMatrix(mLayer->GetTransform(), transform);
|
gfx::To3DMatrix(mLayer->GetTransform(), transform);
|
||||||
return TransformRegion(result, transform);
|
result.Transform(transform);
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The old list of children:
|
// The old list of children:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче