Closed
Bug 342726
Opened 19 years ago
Closed 19 years ago
Reduce nsSVGPatternFrame and nsSVGMaskFrame memory usage
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
People
(Reporter: longsonr, Assigned: longsonr)
Details
Attachments
(1 file, 1 obsolete file)
8.53 KB,
patch
|
tor
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
Can remove some member variables by passing parameters or getting data when required.
Assignee | ||
Comment 1•19 years ago
|
||
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.
Assignee | ||
Comment 3•19 years ago
|
||
Attachment #227047 -
Attachment is obsolete: true
Attachment #227088 -
Flags: review?(tor)
Attachment #227047 -
Flags: review?(tor)
Attachment #227088 -
Flags: review?(tor) → review+
Assignee | ||
Updated•19 years ago
|
Attachment #227088 -
Flags: superreview?(roc)
Attachment #227088 -
Flags: superreview?(roc) → superreview+
Assignee | ||
Comment 4•19 years ago
|
||
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.
Description
•