DescriptionReplace ASSERTs with exit condition in StaticBitmapImage::draw
In degenerate cases (like the layout test added by this change),
the layout box may end up with a negative dimension due to an overflow
in the layout arithmetic. Is such cases, we should just fail
gracefully by rejecting the draw operation.
BUG=544329
Committed: https://crrev.com/35f1d95ad849975161a609311a265974ac93c71b
Cr-Commit-Position: refs/heads/master@{#386704}
Patch Set 1 #
Depends on Patchset: Messages
Total messages: 12 (5 generated)
|