| 56 | } |
| 57 | |
| 58 | bool VectorComposition::hasImageContent() const { |
| 59 | for (auto& layer : layers) { |
| 60 | switch (layer->type()) { |
| 61 | case LayerType::PreCompose: |
| 62 | if (static_cast<PreComposeLayer*>(layer)->composition->hasImageContent()) { |
| 63 | return true; |
| 64 | } |
| 65 | break; |
| 66 | case LayerType::Image: |
| 67 | return true; |
| 68 | default: |
| 69 | break; |
| 70 | } |
| 71 | } |
| 72 | return false; |
| 73 | } |
| 74 | |
| 75 | bool VectorComposition::verify() const { |
| 76 | if (!Composition::verify()) { |