[css-flexbox] Some more code refactoring
Add a constructFlexItem function that does the computations
for creating a FlexItem, and returns it. Also add a couple more
cached pieces of data to FlexItem which simplifies code in
a couple of places.
constructFlexItem will also be useful for implementing the
new intrinsic size algorithm.
R=eae@chromium.org,dgrogan@chromium.org
TEST=n/a, no change in behavior
Review-Url: https://codereview.chromium.org/2170533002
Cr-Commit-Position: refs/heads/master@{#407241}
2 files changed