Check Image from StyleImage::GetImage in NinePieceImagePainter::Paint
While it's technically a breach of the StyleImage::CanRender() contract, some StyleImage implementations still return nullptr from their GetImage(). Since we check this at various other locations already, add one here as well. This would only crash when tracing because the only unchecked dereference is inside the TRACE_EVENT1 macro. Bug: 1006872 Change-Id: Ie0de2eddc8e79aa5527b2eb5b762590fc7eadd11 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1824263Reviewed-by:Stephen Chenney <schenney@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#699802}
Showing
Please register or sign in to comment