You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Initial canvas creation relies on DOM width and height attributes, but layout relies on computed width and height #10705
Tests like texture-size-limit.html in the webgl suite use <canvas id="example" width="32" height="32" style="width: 40px; height: 40px;"></canvas> and this screws us up in a delightful fashion, since HTMLCanvasElement::get_size uses Width() and Height(). This is a cause of assertions where the pixel data retrieved from webgl doesn't match the stride * height that layout expects.
Activity
Ms2ger commentedon Apr 19, 2016
We're unfortunately supposed to scale for code like that.
Auto merge of #10727 - jdm:canvas_panic, r=pcwalton
Auto merge of #10727 - jdm:canvas_panic, r=pcwalton
Auto merge of #10727 - jdm:canvas_panic, r=pcwalton