Closed Bug 522502 Opened 16 years ago Closed 1 month ago

Move NS_SVG_OFFSCREEN_MAX_DIMENSION into gfx

Categories

(Core :: SVG, defect)

defect

Tracking

()

RESOLVED FIXED
142 Branch
Tracking Status
firefox142 --- fixed

People

(Reporter: jwatt, Assigned: longsonr)

Details

Attachments

(1 file)

It seems to me that the gfx code should be the place to offer clamping of surface sizes in addition to gfxASurface::CheckSurfaceSize(). Having the SVG code use NS_SVG_OFFSCREEN_MAX_DIMENSION makes it likely that as new knowledge is added to CheckSurfaceSize for different devices the SVG code will not stay in sync. We want to limit the total number of bytes allocated, but we also want to put a cap on width/height. It's not clear to me at this point what type of clamping we want. for same use cases it seems like it would be desirable to reduce the width and height proportionally in order for reduce quality equally in both dimensions (e.g. filter regions?). In others we may just want to clamp one of the dimensions.
Severity: normal → S3
Assignee: nobody → longsonr
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
QA Whiteboard: [qa-triage-done-c143/b142]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: