add download progress, improbable cloud browser, lock touch when pencil is down on iOS
This commit is contained in:
@@ -191,6 +191,11 @@ void Node::added(Node* parent)
|
||||
|
||||
}
|
||||
|
||||
void Node::removed(Node* parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
const Node* Node::init_template(const char* id)
|
||||
{
|
||||
const auto& m_template = static_cast<Node*>((*m_manager)[const_hash(id)]->m_children[0].get());
|
||||
@@ -247,6 +252,7 @@ void Node::remove_child(Node* n)
|
||||
auto i = std::find_if(m_children.begin(), m_children.end(), [=](auto& ptr) { return ptr.get() == n; });
|
||||
if (i != m_children.end())
|
||||
{
|
||||
n->removed(this);
|
||||
YGNodeRemoveChild(y_node, n->y_node);
|
||||
m_children.erase(i);
|
||||
}
|
||||
@@ -255,7 +261,10 @@ void Node::remove_child(Node* n)
|
||||
void Node::remove_all_children()
|
||||
{
|
||||
for (auto& n : m_children)
|
||||
{
|
||||
n->removed(this);
|
||||
YGNodeRemoveChild(y_node, n->y_node);
|
||||
}
|
||||
m_children.clear();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user