Remove unnecessary style calculations in HTMLCanvasElement
When creating a WebGL canvas, and when allocating a 2D canvas backing, the implementation was triggering an immediate style calculation to evaluate the image-redering CSS property. This CL gets rid of of these calculations by relying on the fact that if the style is dirty, it will be updated before the next paint, which will allow for the state to be corrected after the fact, if necessary. BUG=585135 Review URL: https://codereview.chromium.org/1674123003 Cr-Commit-Position: refs/heads/master@{#374753}
Showing
Please register or sign in to comment