зеркало из https://github.com/mozilla/gecko-dev.git
Bug 966679 - Make LayerProperties aware of RefLayers. r=roc
This commit is contained in:
Родитель
d5e6286e88
Коммит
ee8bfdcd6f
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче