DescriptionCorrect SourceImageStatus in OffscreenCanvas::getSourceImageForCanvas
The crash in constructor of ImagePattern may be due to the fact that
image passed in as its constructor argument is nullptr. By tracking
all the call trace backwards, we find the image creation originates
from BaseRenderingContext2D::createPattern, where the SourceImageStatus
indicates what corresponding action to do. But this SourceImageStatus
was wrongly set for OffscreenCanvas, in particular, in the function
OffscreenCanvas::getSourceImageForCanvas. This CL corrects it and makes
sure that if the image is null, BaseRenderingContext2D::createPattern
will return Image::nullImage() instead of nullptr.
BUG=646654
Committed: https://crrev.com/ce494afba26d386e562b8e8d84ef707d5c54bfc3
Cr-Commit-Position: refs/heads/master@{#418927}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Redo #Patch Set 3 : One more status #Patch Set 4 : Adding test #
Messages
Total messages: 18 (7 generated)
|