diff options
Diffstat (limited to 'experimental/svg/model/SkSVGContainer.cpp')
-rw-r--r-- | experimental/svg/model/SkSVGContainer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/experimental/svg/model/SkSVGContainer.cpp b/experimental/svg/model/SkSVGContainer.cpp index 4f91b30bab..af19608d25 100644 --- a/experimental/svg/model/SkSVGContainer.cpp +++ b/experimental/svg/model/SkSVGContainer.cpp @@ -14,6 +14,10 @@ void SkSVGContainer::appendChild(sk_sp<SkSVGNode> node) { fChildren.push_back(std::move(node)); } +bool SkSVGContainer::hasChildren() const { + return !fChildren.empty(); +} + void SkSVGContainer::onRender(const SkSVGRenderContext& ctx) const { for (int i = 0; i < fChildren.count(); ++i) { fChildren[i]->render(ctx); |