Consolidate measure cache for layout nodes and leaf nodes
Consolidate measure cache for layout nodes and leaf nodes

Summary: Re-use advanced changing logic of leaf nodes in layout nodes. //benchmark:benchmark nested flex test shows a ~15% improvement in layout performance!

Reviewed By: astreet

Differential Revision: D4957570

fbshipit-source-id: 5c5f39b67bd3f72d92b939ecee2d9a46c80b583f

facebook/css-layout,facebook/css-layout,facebook/yoga,yihuang/css-layout,yihuang/css-layout,yihuang/css-layout,facebook/css-layout,yihuang/css-layout,facebook/yoga,facebook/css-layout,facebook/css-layout,facebook/yoga,facebook/yoga,yihuang/css-layout,facebook/yoga,facebook/yoga,facebook/css-layout,yihuang/css-layout,yihuang/css-layout,yihuang/css-layout,facebook/yoga,yihuang/css-layout,facebook/css-layout,facebook/yoga,facebook/yoga,facebook/yoga,facebook/css-layout,facebook/css-layout,yihuang/css-layout