Bug 966679 - Make LayerProperties aware of RefLayers. r=roc

This commit is contained in:
Matt Woodrow 2014-02-11 17:00:46 +13:00
parent d5e6286e88
commit ee8bfdcd6f

View File

@ -371,10 +371,15 @@ CloneLayerTreePropertiesInternal(Layer* aRoot)
}
switch (aRoot->GetType()) {
case Layer::TYPE_CONTAINER: return new ContainerLayerProperties(aRoot->AsContainerLayer());
case Layer::TYPE_COLOR: return new ColorLayerProperties(static_cast<ColorLayer*>(aRoot));
case Layer::TYPE_IMAGE: return new ImageLayerProperties(static_cast<ImageLayer*>(aRoot));
default: return new LayerPropertiesBase(aRoot);
case Layer::TYPE_CONTAINER:
case Layer::TYPE_REF:
return new ContainerLayerProperties(aRoot->AsContainerLayer());
case Layer::TYPE_COLOR:
return new ColorLayerProperties(static_cast<ColorLayer*>(aRoot));
case Layer::TYPE_IMAGE:
return new ImageLayerProperties(static_cast<ImageLayer*>(aRoot));
default:
return new LayerPropertiesBase(aRoot);
}
return nullptr;