Reapply the non-MathExtras parts of
https://src.chromium.org/viewvc/blink?view=rev&revision=183172 .

BUG=81439
TEST=none
TBR=jamesr

Review URL: https://codereview.chromium.org/641643004

git-svn-id: svn://svn.chromium.org/blink/trunk@183624 bbb929c8-8fbe-4397-9dbb-9b2b20218538