mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1217031 - createPattern should not throw NS_ERROR_NOT_AVAILABLE if image usability check returns bad r=bz
MozReview-Commit-ID: 101uAYhcx3u --HG-- extra : rebase_source : 1975f947176b61bb232348458ef7a0f485a0f479
This commit is contained in:
parent
d9ad6dbb9e
commit
0793a8cbff
@ -2174,7 +2174,6 @@ CanvasRenderingContext2D::CreatePattern(const CanvasImageSource& aSource,
|
||||
nsLayoutUtils::SFE_WANT_FIRST_FRAME, mTarget);
|
||||
|
||||
if (!res.GetSourceSurface()) {
|
||||
aError.Throw(NS_ERROR_NOT_AVAILABLE);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@ -69,7 +69,7 @@ interface CanvasRenderingContext2D {
|
||||
[NewObject, Throws]
|
||||
CanvasGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1);
|
||||
[NewObject, Throws]
|
||||
CanvasPattern createPattern(CanvasImageSource image, [TreatNullAs=EmptyString] DOMString repetition);
|
||||
CanvasPattern? createPattern(CanvasImageSource image, [TreatNullAs=EmptyString] DOMString repetition);
|
||||
|
||||
// shadows
|
||||
[LenientFloat]
|
||||
|
@ -1,5 +0,0 @@
|
||||
[2d.pattern.image.incomplete.immediate.html]
|
||||
type: testharness
|
||||
[Canvas test: 2d.pattern.image.incomplete.immediate]
|
||||
expected: FAIL
|
||||
|
Loading…
Reference in New Issue
Block a user