commit | 7ef85471df8874dcda4eadb3c5e7b1c9dbd686a5 | [log] [tgz] |
---|---|---|
author | Daniel Bratell <bratell@opera.com> | Tue Jul 10 10:16:11 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jul 10 10:16:11 2018 |
tree | ed4be66a66c1ed76ba25ce8493cac1c04efda89e | |
parent | 54722f0c12ff5acbc6172faf6cac0809bca4f268 [diff] |
Forbid implicit conversions from IntPoint to FloatPoint This is a followup from an analogous change for IntRect and FloatRect which was triggered by some unintended conversions happening. Since FloatPoint is not a perfect superset of IntPoint, converting from IntPoint to FloatPoint is potentially lossy, and conversions that happen by accident hide that APIs are not used as intended. Behaviour has been kept where it's not obviously a mistake. Truncating or snapping to integers is sometimes beneficial. R=fs@opera.com, pdr@chromium.org Bug: 860535 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng;luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I84e72a890dbddc2a9f40bb25a000f7eec75f6ffa Reviewed-on: https://chromium-review.googlesource.com/1126396 Reviewed-by: Fredrik Söderquist <fs@opera.com> Reviewed-by: Philip Rogers <pdr@chromium.org> Commit-Queue: Daniel Bratell <bratell@opera.com> Cr-Commit-Position: refs/heads/master@{#573675}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .