mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 966679 - Make LayerProperties aware of RefLayers. r=roc
This commit is contained in:
parent
d5e6286e88
commit
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;
|
||||
|
Loading…
Reference in New Issue
Block a user