Consider merging https://chromium.googlesource.com/chromium/blink/+/4a723f1500205a05096946476bdc84b56a24f90f This should make it easier to understand the code. I have also simplified some calculations and gave some expressions their own variables.
@Sam - is this applicable anymore?
Looking at both the patch in question and the current code I don't think so. Looks like we merged in those changes and some others when we rebased the flex code off of Blink's ToT a while ago: https://bugs.webkit.org/show_bug.cgi?id=168657
Going to go ahead and resolve this since it was already taken care of by the rebase we did a while back *** This bug has been marked as a duplicate of bug 168657 ***