Closed Bug 378508 Opened 17 years ago Closed 17 years ago

Convert svg gradients to thebes

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: tor, Unassigned)

Details

Attachments

(2 files, 2 obsolete files)

Attached patch switch gradients to gfxPattern (obsolete) — Splinter Review
      No description provided.
Attachment #262557 - Flags: review?(longsonr)
Comment on attachment 262557 [details] [diff] [review]
switch gradients to gfxPattern

Needs an update to tip.
Attached patch update to tipSplinter Review
Attachment #262557 - Attachment is obsolete: true
Attachment #262643 - Flags: review?(longsonr)
Attachment #262557 - Flags: review?(longsonr)
Comment on attachment 262643 [details] [diff] [review]
update to tip

>-nsresult
>-nsSVGGradientFrame::GetGradientTransform(nsIDOMSVGMatrix **aGradientTransform,
>-                                         nsSVGGeometryFrame *aSource)
>+gfxMatrix
>+nsSVGGradientFrame::GetGradientTransform(nsSVGGeometryFrame *aSource)
> {
>-  *aGradientTransform = nsnull;
>+  gfxMatrix result;

result is a rather meaningless name how about bboxMatrix or in fact anything else that gives you a clue to what it is, especially as its definition and use are separated.

with that r=longsonr
Attachment #262643 - Flags: review?(longsonr) → review+
Attached patch rename matrix (obsolete) — Splinter Review
Attachment #262650 - Flags: superreview?(roc)
+gfxPattern *
 nsSVGLinearGradientFrame::CreateGradient()

Shouldn't this addref the pattern and return already_AddRefed<gfxPattern>? returning objects with zero refcount seems like a bad idea.

Otherwise looks good.
Attachment #262650 - Attachment is obsolete: true
Attachment #262904 - Flags: superreview?(roc)
Attachment #262650 - Flags: superreview?(roc)
Attachment #262904 - Flags: superreview?(roc)
Attachment #262904 - Flags: superreview+
Attachment #262904 - Flags: review+
Checked in.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: