Commit 0793a8cb authored by Michael Kohler's avatar Michael Kohler
Browse files

Bug 1217031 - createPattern should not throw NS_ERROR_NOT_AVAILABLE if image...

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
parent d9ad6dbb
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
  }

+1 −1
Original line number Diff line number Diff line
@@ -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]
+0 −5
Original line number Diff line number Diff line
[2d.pattern.image.incomplete.immediate.html]
  type: testharness
  [Canvas test: 2d.pattern.image.incomplete.immediate]
    expected: FAIL