mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 759169 - Fix for compile error when MOZ_RENDERTRACE is enabled. r=bgirard
--HG-- extra : rebase_source : 56d1c44d4efeea7b2237385f560fad856dae15a4
This commit is contained in:
parent
a63c18d790
commit
c114b203d7
@ -16,7 +16,8 @@ namespace layers {
|
||||
static int colorId = 0;
|
||||
|
||||
static gfx3DMatrix GetRootTransform(Layer *aLayer) {
|
||||
gfx3DMatrix layerTrans = aLayer->GetTransform().ProjectTo2D();
|
||||
gfx3DMatrix layerTrans = aLayer->GetTransform();
|
||||
layerTrans.ProjectTo2D();
|
||||
if (aLayer->GetParent() != NULL) {
|
||||
return GetRootTransform(aLayer->GetParent()) * layerTrans;
|
||||
}
|
||||
@ -27,7 +28,8 @@ void RenderTraceLayers(Layer *aLayer, const char *aColor, const gfx3DMatrix aRoo
|
||||
if (!aLayer)
|
||||
return;
|
||||
|
||||
gfx3DMatrix trans = aRootTransform * aLayer->GetTransform().ProjectTo2D();
|
||||
gfx3DMatrix trans = aRootTransform * aLayer->GetTransform();
|
||||
trans.ProjectTo2D();
|
||||
nsIntRect clipRect = aLayer->GetEffectiveVisibleRegion().GetBounds();
|
||||
gfxRect rect(clipRect.x, clipRect.y, clipRect.width, clipRect.height);
|
||||
trans.TransformBounds(rect);
|
||||
|
Loading…
Reference in New Issue
Block a user