ui/gfx: Make gfx::Size::GetArea use checked math.

This patch ensures that if the area calculation would overflow, we
instead fail a CHECK.

R=danakj, pkasting@chromium.org
BUG=352761

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

Cr-Commit-Position: refs/heads/master@{#353594}


CrOS-Libchrome-Original-Commit: 35f226abcae1a7143e9574b31e391a8e8e0c26ae
2 files changed
tree: 11eaa1bbdfbb3554c7f641d8bfa58e5a6f65c012
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/