[core] Add use LayerTypeInfo::Layout for the layers that require Layout

This commit is contained in:
Alexander Shalamov
2018-10-30 17:41:53 +02:00
parent 05d5edfa74
commit eb170b250a
6 changed files with 10 additions and 6 deletions

View File

@@ -26,7 +26,8 @@ const style::FillLayer::Impl& RenderFillLayer::impl() const {
}
std::unique_ptr<Bucket> RenderFillLayer::createBucket(const BucketParameters&, const std::vector<const RenderLayer*>&) const {
assert(false); // Should be calling createLayout() instead.
// Should be calling createLayout() instead.
assert(baseImpl->getTypeInfo()->layout == LayerTypeInfo::Layout::NotRequired);
return nullptr;
}