Issue: Refactoring cc.Node's nodeToParentTransform for better performance.

Refactoring cc.Node's nodeToParentTransform for better performance.