Add sanity checks to text properties bounds in RenderText
This CL is adding sanity check to ensure no components in chrome are using incorrectly the RenderText API. We recently observed a crash (crbug/1124118) that was caused by setting a property outside of the text bounds. The RenderText API assume correct uses of these properties. With this CL they will be reported as a crash reports. Bug: 1142020 Change-Id: I58d19bbbfeca97ad8425706eb85a825105db9f21 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2518895 Commit-Queue: Etienne Bergeron <etienneb@chromium.org> Reviewed-by:Michael Wasserman <msw@chromium.org> Cr-Commit-Position: refs/heads/master@{#823866}
Showing
Please register or sign in to comment