[imagedata] Avoid using deprecated DOMArrayBuffer functions
This CL replaces uses of version of deprecatedByteLengthAsUnsigned in the ImageData implementation with byteLengthAsSizeT. In ValidateConstructorArguments we check for potential overflows and throw an exception if necessary. Some uses can already deal with size_t anyways. In one case I cast the value with a checked_cast. R=jbroman@chromium.org Bug: chromium:1008840 Change-Id: I5d3117a27e1b385428603a08f33d624b42cc4592 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1948928 Commit-Queue: Andreas Haas <ahaas@chromium.org> Reviewed-by:Jeremy Roman <jbroman@chromium.org> Cr-Commit-Position: refs/heads/master@{#721436}
Showing
Please register or sign in to comment