Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Issue 57643005: [2D Canvas] Fix crash in createPattern method when using invalid canvas as source. (Closed)

Created:
7 years, 1 month ago by Justin Novosad
Modified:
7 years, 1 month ago
Reviewers:
Stephen White
CC:
blink-reviews, jamesr, dsinclair, danakj, Rik, Stephen Chennney, pdr.
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -5 lines) Patch
A LayoutTests/fast/canvas/canvas-large-pattern.html View 1 chunk +48 lines, -0 lines 0 comments Download
A + LayoutTests/fast/canvas/canvas-large-pattern-expected.txt View 1 chunk +6 lines, -3 lines 0 comments Download
M Source/core/platform/graphics/Pattern.cpp View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Justin Novosad
PTAL
7 years, 1 month ago (2013-11-04 19:45:03 UTC) #1
Stephen White
If the bots are happy, I'm happy. LGTM
7 years, 1 month ago (2013-11-04 20:05:13 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/junov@chromium.org/57643005/1
7 years, 1 month ago (2013-11-04 20:10:40 UTC) #3
commit-bot: I haz the power
7 years, 1 month ago (2013-11-04 21:36:09 UTC) #4
Message was sent while issue was closed.
Change committed as 161286

Powered by Google App Engine
This is Rietveld 408576698