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

This commit is contained in:
Matt Woodrow 2014-02-11 17:00:46 +13:00
Родитель d5e6286e88
Коммит ee8bfdcd6f
1 изменённых файлов: 9 добавлений и 4 удалений

Просмотреть файл

@ -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;