Lines Matching refs:old_layer
316 ui::Layer* old_layer = AcquireLayer();
317 if (!old_layer)
320 old_layer->set_delegate(NULL);
322 layer_ = new ui::Layer(old_layer->type());
324 layer_->SetVisible(old_layer->visible());
325 layer_->set_scale_content(old_layer->scale_content());
327 layer_->SetMasksToBounds(old_layer->GetMasksToBounds());
330 delegate_->DidRecreateLayer(old_layer, layer_);
335 if (old_layer->parent()) {
336 old_layer->parent()->Add(layer_);
337 old_layer->parent()->StackBelow(layer_, old_layer);
341 std::vector<ui::Layer*> children_copy = old_layer->children();
348 return old_layer;