Only perform class and method lookup once
Only perform class and method lookup once

Summary: This caches the class and method id references between calls. The class lookup is done once per method still but I think that is ok for now as the code becomes somewhat cleaner and more self contained.

Reviewed By: lucasr

Differential Revision: D3661989

fbshipit-source-id: 68d4557364bb8957400aefb2603c2e46424ccec3

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