Use std::min/max to make intent more clear
Use std::min/max to make intent more clear

The one-line conditionals when calculating the bounding box are unclear, particularly with the loose definition of "top". Use std::min/max to make it obvious.

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

Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#380974}

axinging/chromium-crosswalk,axinging/chromium-crosswalk,axinging/chromium-crosswalk,axinging/chromium-crosswalk,axinging/chromium-crosswalk,axinging/chromium-crosswalk,axinging/chromium-crosswalk,axinging/chromium-crosswalk,axinging/chromium-crosswalk,axinging/chromium-crosswalk,axinging/chromium-crosswalk