Closed Bug 342726 Opened 19 years ago Closed 19 years ago

Reduce nsSVGPatternFrame and nsSVGMaskFrame memory usage

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: longsonr, Assigned: longsonr)

Details

Attachments

(1 file, 1 obsolete file)

Can remove some member variables by passing parameters or getting data when required.
Attached patch patch (obsolete) — Splinter Review
Assignee: general → longsonr
Status: NEW → ASSIGNED
Attachment #227047 - Flags: review?(tor)
Comment on attachment 227047 [details] [diff] [review] patch >+PRUint16 >+nsSVGMaskFrame::GetMaskUnits() >+{ >+ PRUint16 rv; >+ >+ nsIDOMSVGMaskElement *maskElement = nsnull; >+ CallQueryInterface(mContent, &maskElement); >+ nsCOMPtr<nsIDOMSVGAnimatedEnumeration> units; >+ maskElement->GetMaskUnits(getter_AddRefs(units)); >+ units->GetAnimVal(&rv); >+ return rv; >+} You don't need to QI, as we know that mContent is a nsSVGMaskElement and can just be cast to that type. >+PRUint16 >+nsSVGMaskFrame::GetMaskContentUnits() >+{ ... >+} Ditto.
Attachment #227047 - Attachment is obsolete: true
Attachment #227088 - Flags: review?(tor)
Attachment #227047 - Flags: review?(tor)
Attachment #227088 - Flags: review?(tor) → review+
Attachment #227088 - Flags: superreview?(roc)
Attachment #227088 - Flags: superreview?(roc) → superreview+
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: