commit | cf97338c1acc00667f15ebfa35defaeacb5ffb8e | [log] [tgz] |
---|---|---|
author | vmpstr <vmpstr@chromium.org> | Tue Oct 13 06:08:01 2015 +0900 |
committer | Qijiang Fan <fqj@google.com> | Fri Jun 05 01:36:00 2020 +0900 |
tree | 11eaa1bbdfbb3554c7f641d8bfa58e5a6f65c012 | |
parent | bf4e59c5d815248350aae588af0fbb361613def0 [diff] |
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