Closed Bug 1523178 Opened 7 years ago Closed 7 years ago

Merge SVGAngle and nsSVGOrientType into SVGOrient

Categories

(Core :: SVG, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: longsonr, Assigned: longsonr)

Details

Attachments

(1 file, 3 obsolete files)

Only markers have an angle which is actually orient, an angle or auto.

If we model this with a single SVGOrient type we can handle animation better i.e. fix this: https://dxr.mozilla.org/mozilla-central/source/dom/svg/SVGMarkerElement.h#43

and avoid having to override AfterSetAttr and ParseAttribute in SVGMarkerElement

Attached patch 1523178.txt (obsolete) — Splinter Review
Assignee: nobody → longsonr
Priority: -- → P3
Attached patch patch (obsolete) — Splinter Review

nsSVGOrientType's methods are merged into SVGAngle which is then renamed to SVGOrient. This fixes the flaw that nsSVGOrientType does not know whether it's animated or not.

Because there's only one orient, the one that marker elements have we can treat it as such.

Also take this opportunity to implement a tear off for the orientType enum.

Attachment #9039425 - Attachment is obsolete: true
Attachment #9039877 - Flags: review?(jwatt)
Attached patch 1523178.txt (obsolete) — Splinter Review

Use a notifier to further simplify the code and ensure correctness.

Ensure we flush animations before returning animated values.

Attachment #9040370 - Flags: review?(jwatt)
Attachment #9039877 - Attachment is obsolete: true
Attachment #9039877 - Flags: review?(jwatt)
Attachment #9040370 - Attachment is obsolete: true
Attachment #9040370 - Flags: review?(jwatt)
Attachment #9040408 - Flags: review?(jwatt)
Attachment #9040408 - Flags: review?(jwatt) → review+
Pushed by longsonr@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/ba2f8df48afd Merge SVGAngle and nsSVGOrientType into SVGOrient r=jwatt
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: