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(); }
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(); }