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