commit | c58186cc608c79f65998f4ac7e173a9c5ddf7dd8 | [log] [tgz] |
---|---|---|
author | Avi Drissman <avi@chromium.org> | Thu Nov 15 23:09:28 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Nov 15 23:09:28 2018 |
tree | d05d4ce516ae2807c61707e150183890af610e0c | |
parent | 42cbbce1449e218024d320135f59470a05ca9373 [diff] |
Make gfx::Image's NSImage constructor retain the incoming image. The Mac convention for ObjC objects is that if a callee needs to have a reference, it should take the reference itself. The current behavior of gfx::Image's NSImage constructor is surprising and relying on explaining it in the comment is inadequate. Note that gfx::Image's UIImage constructor had a similar change made to it in 2a1f622ddc372a0bd4206fb01c45f4ebbe37258b. BUG=904645 Change-Id: I4dab00c3c7f3ff2f73e17520562d728b3a2e52aa Reviewed-on: https://chromium-review.googlesource.com/c/1335957 Reviewed-by: Robert Sesek <rsesek@chromium.org> Commit-Queue: Avi Drissman <avi@chromium.org> Cr-Commit-Position: refs/heads/master@{#608566}
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 .