Closed Bug 1279628 Opened 8 years ago Closed 8 years ago

Add the CoreGraphics check from gfxASurface::CheckSurfaceSize to Factory::CheckSurfaceSize, then kill of the latter helper

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla50
Tracking Status
firefox50 --- fixed

People

(Reporter: jwatt, Assigned: jwatt)

References

Details

Attachments

(2 files)

      No description provided.
Attachment #8762197 - Flags: review?(bas) → review+
Attachment #8762198 - Flags: review?(bas) → review+
Pushed by jwatt@jwatt.org:
https://hg.mozilla.org/integration/mozilla-inbound/rev/416fa9aeec55
part 1 - Add the CoreGraphics check from gfxASurface::CheckSurfaceSize to Factory::CheckSurfaceSize. r=mstange
https://hg.mozilla.org/integration/mozilla-inbound/rev/07e4432bd6b3
part 2 - Replace all gfxASurface::CheckSurfaceSize calls with Factory::CheckSurfaceSize and remove gfxASurface::CheckSurfaceSize. r=mstange
Turns out this is due to the change in CanvasRenderingContext2D::DrawWindow, and it happens because there's one significant difference between gfxASurface::CheckSurfaceSize and Factory::CheckSurfaceSize - the former returns false if the width/height are less than zero, whereas the latter returns false if the width/height are less than or equal to zero.

I'll split the CanvasRenderingContext2D::DrawWindow change out into a 'part 3' patch, and add an explicit check for zero width/height to it before calling Factory::CheckSurfaceSize.
Pushed by jwatt@jwatt.org:
https://hg.mozilla.org/integration/mozilla-inbound/rev/a643f56f7523
part 1 - Add the CoreGraphics check from gfxASurface::CheckSurfaceSize to Factory::CheckSurfaceSize. r=mstange
Pushed by jwatt@jwatt.org:
https://hg.mozilla.org/integration/mozilla-inbound/rev/56154813d29d
part 2 - Switch all but one of the gfxASurface::CheckSurfaceSize calls to call Factory::CheckSurfaceSize. r=mstange
Pushed by jwatt@jwatt.org:
https://hg.mozilla.org/integration/mozilla-inbound/rev/47c5f6b6fc0f
part 3 - Replace the last gfxASurface::CheckSurfaceSize call, and remove gfxASurface::CheckSurfaceSize. r=mstange
Depends on: 1284092
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: