gecko-dev/gfx/layers/client/ClientContainerLayer.cpp

23 строки
599 B
C++

#include "ClientContainerLayer.h"
#include "BasicLayersImpl.h"
already_AddRefed<ContainerLayer>
ClientLayerManager::CreateContainerLayer()
{
NS_ASSERTION(InConstruction(), "Only allowed in construction phase");
nsRefPtr<ClientContainerLayer> layer =
new ClientContainerLayer(this);
CREATE_SHADOW(Container);
return layer.forget();
}
already_AddRefed<RefLayer>
ClientLayerManager::CreateRefLayer()
{
NS_ASSERTION(InConstruction(), "Only allowed in construction phase");
nsRefPtr<ClientRefLayer> layer =
new ClientRefLayer(this);
CREATE_SHADOW(Ref);
return layer.forget();
}