Description[2D Canvas] Fix crash in createPattern method when using invalid canvas as source.
Before this fix, createPattern would crash when the source image is a canvas
element with a backing store that failed to allocate. Correct behavior
is to default to a transparent black pattern. The code to handle the
default behavior was already there, but the constructor of Pattern was
crashing when passed a null image. This patch fixes that crash.
BUG=281504
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161286
Patch Set 1 #
Messages
Total messages: 4 (0 generated)
|