Remove unneeded null checks in ImageBitmap.cpp.
`new` never returns nullptr per standard (in Chromium, we crash the process on out-of-memory instead). Also, in the first case, the image in the ImageBitmap is checked for nullness right above, so that check isn't needed either. Bug: 805881 Change-Id: Ieff5bdf15813bfb0f3087ec925f74ecacc77df7c Reviewed-on: https://chromium-review.googlesource.com/887758Reviewed-by:Mohammad Reza Zakerinasab <zakerinasab@chromium.org> Cr-Commit-Position: refs/heads/master@{#532503}
Showing
Please register or sign in to comment