Ejemplo n.º 1
0
PassOwnPtr<ScrollingStateNode> ScrollingStateNode::cloneAndReset()
{
    OwnPtr<ScrollingStateNode> clone = this->clone();

    // Now that this node is cloned, reset our change properties.
    resetChangedProperties();

    cloneAndResetChildren(clone.get());
    return clone.release();
}
Ejemplo n.º 2
0
PassRefPtr<ScrollingStateNode> ScrollingStateNode::cloneAndReset(ScrollingStateTree& adoptiveTree)
{
    RefPtr<ScrollingStateNode> clone = this->clone(adoptiveTree);

    // Now that this node is cloned, reset our change properties.
    resetChangedProperties();

    cloneAndResetChildren(*clone, adoptiveTree);
    return clone.release();
}