mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1039992 - Fix a unified build issue. r=kats
--HG-- extra : rebase_source : 4e1e09c9bcb35f70c3ee7ff833646e5f437f5a86
This commit is contained in:
parent
c987c75938
commit
9817bf729f
@ -1888,6 +1888,14 @@ SetAntialiasingFlags(Layer* aLayer, DrawTarget* aTarget)
|
||||
aTarget->SetPermitSubpixelAA(permitSubpixelAA);
|
||||
}
|
||||
|
||||
nsIntRect
|
||||
ToOutsideIntRect(const gfxRect &aRect)
|
||||
{
|
||||
gfxRect r = aRect;
|
||||
r.RoundOut();
|
||||
return nsIntRect(r.X(), r.Y(), r.Width(), r.Height());
|
||||
}
|
||||
|
||||
PRLogModuleInfo* LayerManager::sLog;
|
||||
|
||||
} // namespace layers
|
||||
|
@ -2232,6 +2232,9 @@ void WriteSnapshotToDumpFile(LayerManager* aManager, gfx::DataSourceSurface* aSu
|
||||
void WriteSnapshotToDumpFile(Compositor* aCompositor, gfx::DrawTarget* aTarget);
|
||||
#endif
|
||||
|
||||
// A utility function used by different LayerManager implementations.
|
||||
nsIntRect ToOutsideIntRect(const gfxRect &aRect);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -110,14 +110,6 @@ BasicLayerManager::PushGroupForLayer(gfxContext* aContext, Layer* aLayer,
|
||||
return result.forget();
|
||||
}
|
||||
|
||||
static nsIntRect
|
||||
ToOutsideIntRect(const gfxRect &aRect)
|
||||
{
|
||||
gfxRect r = aRect;
|
||||
r.RoundOut();
|
||||
return nsIntRect(r.X(), r.Y(), r.Width(), r.Height());
|
||||
}
|
||||
|
||||
static nsIntRect
|
||||
ToInsideIntRect(const gfxRect& aRect)
|
||||
{
|
||||
|
@ -370,14 +370,6 @@ ClientLayerManager::RunOverfillCallback(const uint32_t aOverfill)
|
||||
mOverfillCallbacks.Clear();
|
||||
}
|
||||
|
||||
static nsIntRect
|
||||
ToOutsideIntRect(const gfxRect &aRect)
|
||||
{
|
||||
gfxRect r = aRect;
|
||||
r.RoundOut();
|
||||
return nsIntRect(r.X(), r.Y(), r.Width(), r.Height());
|
||||
}
|
||||
|
||||
void
|
||||
ClientLayerManager::MakeSnapshotIfRequired()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user