Commit bac333e
Zhenyao Mo
2011-04-14 Zhenyao Mo <zmo@google.com>
Reviewed by Kenneth Russell.
Use HTMLImageElement in Canvas 2D / WebGL before response is ready causes crash
https://bugs.webkit.org/show_bug.cgi?id=58501
* html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::texImage2D): Call validateHTMLImageElement().
(WebCore::WebGLRenderingContext::texSubImage2D): Ditto.
(WebCore::WebGLRenderingContext::validateHTMLImageElement): Make sure image is ready.
* html/canvas/WebGLRenderingContext.h:
Canonical link: https://commits.webkit.org/73746@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83992 268f45cc-cd09-0410-ab3c-d52691b4dbfc1 parent bd0f980 commit bac333e
3 files changed
Lines changed: 32 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
1 | 14 | | |
2 | 15 | | |
3 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3140 | 3140 | | |
3141 | 3141 | | |
3142 | 3142 | | |
3143 | | - | |
3144 | | - | |
| 3143 | + | |
3145 | 3144 | | |
3146 | | - | |
3147 | 3145 | | |
3148 | 3146 | | |
3149 | 3147 | | |
| |||
3334 | 3332 | | |
3335 | 3333 | | |
3336 | 3334 | | |
3337 | | - | |
3338 | | - | |
| 3335 | + | |
3339 | 3336 | | |
3340 | | - | |
3341 | 3337 | | |
3342 | 3338 | | |
3343 | 3339 | | |
| |||
4613 | 4609 | | |
4614 | 4610 | | |
4615 | 4611 | | |
| 4612 | + | |
| 4613 | + | |
| 4614 | + | |
| 4615 | + | |
| 4616 | + | |
| 4617 | + | |
| 4618 | + | |
| 4619 | + | |
| 4620 | + | |
| 4621 | + | |
| 4622 | + | |
| 4623 | + | |
| 4624 | + | |
| 4625 | + | |
4616 | 4626 | | |
4617 | 4627 | | |
4618 | 4628 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
593 | 596 | | |
594 | 597 | | |
595 | 598 | | |
| |||
0 commit comments