• danakj's avatar
    Remove lossy ConvertPointToDIP() methods. · fae0c847
    danakj authored
    The Convert*ToDIP() and Convert*ToPixel() functions are problematic in
    that they hide what decision is being taken in the underlying code
    when moving from floating point to integer, and consumers should be
    thinking about what they want for correctness. They also act in
    inconsistent ways when converting a Rect vs its components. This
    removes the functions that perform float->int conversions in order to
    have callers show what they intend to happen and make it clear that
    data is being lost in some fashion.
    
    R=sky@chromium.org
    
    Bug: 1130050
    Change-Id: I5fc16143e7425d84ee0d6cfc55b863063d725f94
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2418805Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Commit-Queue: danakj <danakj@chromium.org>
    Auto-Submit: danakj <danakj@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#809789}
    fae0c847
cursor_window_controller.cc 16 KB