mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 903112 - Replace this with MOZ_THIS_IN_INITIALIZER_LIST() in gfx/. r=jfkthame
This commit is contained in:
parent
d0b8e6c609
commit
61cd54d7d7
@ -29,7 +29,8 @@ class BasicCanvasLayer : public CopyableCanvasLayer,
|
||||
{
|
||||
public:
|
||||
BasicCanvasLayer(BasicLayerManager* aLayerManager) :
|
||||
CopyableCanvasLayer(aLayerManager, static_cast<BasicImplData*>(this))
|
||||
CopyableCanvasLayer(aLayerManager,
|
||||
static_cast<BasicImplData*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
||||
{ }
|
||||
|
||||
virtual void SetVisibleRegion(const nsIntRegion& aRegion)
|
||||
|
@ -14,7 +14,8 @@ namespace layers {
|
||||
class BasicColorLayer : public ColorLayer, public BasicImplData {
|
||||
public:
|
||||
BasicColorLayer(BasicLayerManager* aLayerManager) :
|
||||
ColorLayer(aLayerManager, static_cast<BasicImplData*>(this))
|
||||
ColorLayer(aLayerManager,
|
||||
static_cast<BasicImplData*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
||||
{
|
||||
MOZ_COUNT_CTOR(BasicColorLayer);
|
||||
}
|
||||
|
@ -178,7 +178,8 @@ class BasicContainerLayer : public ContainerLayer, public BasicImplData {
|
||||
|
||||
public:
|
||||
BasicContainerLayer(BasicLayerManager* aManager) :
|
||||
ContainerLayer(aManager, static_cast<BasicImplData*>(this))
|
||||
ContainerLayer(aManager,
|
||||
static_cast<BasicImplData*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
||||
{
|
||||
MOZ_COUNT_CTOR(BasicContainerLayer);
|
||||
mSupportsComponentAlphaChildren = true;
|
||||
|
@ -22,7 +22,8 @@ namespace layers {
|
||||
class BasicImageLayer : public ImageLayer, public BasicImplData {
|
||||
public:
|
||||
BasicImageLayer(BasicLayerManager* aLayerManager) :
|
||||
ImageLayer(aLayerManager, static_cast<BasicImplData*>(this)),
|
||||
ImageLayer(aLayerManager,
|
||||
static_cast<BasicImplData*>(MOZ_THIS_IN_INITIALIZER_LIST())),
|
||||
mSize(-1, -1)
|
||||
{
|
||||
MOZ_COUNT_CTOR(BasicImageLayer);
|
||||
|
@ -41,7 +41,8 @@ class BasicReadbackLayer : public ReadbackLayer,
|
||||
{
|
||||
public:
|
||||
BasicReadbackLayer(BasicLayerManager* aLayerManager) :
|
||||
ReadbackLayer(aLayerManager, static_cast<BasicImplData*>(this))
|
||||
ReadbackLayer(aLayerManager,
|
||||
static_cast<BasicImplData*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
||||
{
|
||||
MOZ_COUNT_CTOR(BasicReadbackLayer);
|
||||
}
|
||||
|
@ -19,7 +19,8 @@ public:
|
||||
typedef ThebesLayerBuffer::ContentType ContentType;
|
||||
|
||||
BasicThebesLayer(BasicLayerManager* aLayerManager) :
|
||||
ThebesLayer(aLayerManager, static_cast<BasicImplData*>(this)),
|
||||
ThebesLayer(aLayerManager,
|
||||
static_cast<BasicImplData*>(MOZ_THIS_IN_INITIALIZER_LIST())),
|
||||
mContentClient(nullptr)
|
||||
{
|
||||
MOZ_COUNT_CTOR(BasicThebesLayer);
|
||||
|
@ -28,7 +28,8 @@ class ClientCanvasLayer : public CopyableCanvasLayer,
|
||||
typedef CanvasClient::CanvasClientType CanvasClientType;
|
||||
public:
|
||||
ClientCanvasLayer(ClientLayerManager* aLayerManager) :
|
||||
CopyableCanvasLayer(aLayerManager, static_cast<ClientLayer*>(this))
|
||||
CopyableCanvasLayer(aLayerManager,
|
||||
static_cast<ClientLayer*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
||||
{
|
||||
MOZ_COUNT_CTOR(ClientCanvasLayer);
|
||||
}
|
||||
|
@ -15,7 +15,8 @@ class ClientColorLayer : public ColorLayer,
|
||||
public ClientLayer {
|
||||
public:
|
||||
ClientColorLayer(ClientLayerManager* aLayerManager) :
|
||||
ColorLayer(aLayerManager, static_cast<ClientLayer*>(this))
|
||||
ColorLayer(aLayerManager,
|
||||
static_cast<ClientLayer*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
||||
{
|
||||
MOZ_COUNT_CTOR(ClientColorLayer);
|
||||
}
|
||||
|
@ -139,7 +139,8 @@ class ClientContainerLayer : public ContainerLayer,
|
||||
|
||||
public:
|
||||
ClientContainerLayer(ClientLayerManager* aManager) :
|
||||
ContainerLayer(aManager, static_cast<ClientLayer*>(this))
|
||||
ContainerLayer(aManager,
|
||||
static_cast<ClientLayer*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
||||
{
|
||||
MOZ_COUNT_CTOR(ClientContainerLayer);
|
||||
mSupportsComponentAlphaChildren = true;
|
||||
@ -250,7 +251,8 @@ class ClientRefLayer : public RefLayer,
|
||||
public ClientLayer {
|
||||
public:
|
||||
ClientRefLayer(ClientLayerManager* aManager) :
|
||||
RefLayer(aManager, static_cast<ClientLayer*>(this))
|
||||
RefLayer(aManager,
|
||||
static_cast<ClientLayer*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
||||
{
|
||||
MOZ_COUNT_CTOR(ClientRefLayer);
|
||||
}
|
||||
|
@ -17,7 +17,8 @@ class ClientImageLayer : public ImageLayer,
|
||||
public ClientLayer {
|
||||
public:
|
||||
ClientImageLayer(ClientLayerManager* aLayerManager)
|
||||
: ImageLayer(aLayerManager, static_cast<ClientLayer*>(this))
|
||||
: ImageLayer(aLayerManager,
|
||||
static_cast<ClientLayer*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
||||
, mImageClientTypeContainer(BUFFER_UNKNOWN)
|
||||
{
|
||||
MOZ_COUNT_CTOR(ClientImageLayer);
|
||||
|
@ -20,7 +20,8 @@ public:
|
||||
typedef ThebesLayerBuffer::ContentType ContentType;
|
||||
|
||||
ClientThebesLayer(ClientLayerManager* aLayerManager) :
|
||||
ThebesLayer(aLayerManager, static_cast<ClientLayer*>(this)),
|
||||
ThebesLayer(aLayerManager,
|
||||
static_cast<ClientLayer*>(MOZ_THIS_IN_INITIALIZER_LIST())),
|
||||
mContentClient(nullptr)
|
||||
{
|
||||
MOZ_COUNT_CTOR(ClientThebesLayer);
|
||||
|
@ -14,7 +14,8 @@ namespace layers {
|
||||
|
||||
|
||||
ClientTiledThebesLayer::ClientTiledThebesLayer(ClientLayerManager* const aManager)
|
||||
: ThebesLayer(aManager, static_cast<ClientLayer*>(this))
|
||||
: ThebesLayer(aManager,
|
||||
static_cast<ClientLayer*>(MOZ_THIS_IN_INITIALIZER_LIST()))
|
||||
, mContentClient()
|
||||
{
|
||||
MOZ_COUNT_CTOR(ClientTiledThebesLayer);
|
||||
|
@ -171,8 +171,8 @@ AsyncPanZoomController::AsyncPanZoomController(uint64_t aLayersId,
|
||||
mRefPtrMonitor("RefPtrMonitor"),
|
||||
mMonitor("AsyncPanZoomController"),
|
||||
mTouchListenerTimeoutTask(nullptr),
|
||||
mX(this),
|
||||
mY(this),
|
||||
mX(MOZ_THIS_IN_INITIALIZER_LIST()),
|
||||
mY(MOZ_THIS_IN_INITIALIZER_LIST()),
|
||||
mAllowZoom(true),
|
||||
mMinZoom(MIN_ZOOM),
|
||||
mMaxZoom(MAX_ZOOM),
|
||||
|
@ -247,7 +247,8 @@ static const char *gPrefLangNames[] = {
|
||||
};
|
||||
|
||||
gfxPlatform::gfxPlatform()
|
||||
: mAzureCanvasBackendCollector(this, &gfxPlatform::GetAzureBackendInfo)
|
||||
: mAzureCanvasBackendCollector(MOZ_THIS_IN_INITIALIZER_LIST(),
|
||||
&gfxPlatform::GetAzureBackendInfo)
|
||||
, mDrawLayerBorders(false)
|
||||
, mDrawTileBorders(false)
|
||||
, mDrawBigImageBorders(false)
|
||||
@ -2004,4 +2005,4 @@ gfxPlatform::ComponentAlphaEnabled()
|
||||
|
||||
InitLayersAccelerationPrefs();
|
||||
return sComponentAlphaEnabled;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user