Merge SVGAngle and nsSVGOrientType into SVGOrient
Categories
(Core :: SVG, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: longsonr, Assigned: longsonr)
Details
Attachments
(1 file, 3 obsolete files)
60.27 KB,
patch
|
jwatt
:
review+
|
Details | Diff | Splinter Review |
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
Assignee | ||
Comment 1•7 years ago
|
||
![]() |
||
Updated•7 years ago
|
Assignee | ||
Comment 2•7 years ago
|
||
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.
Assignee | ||
Comment 3•7 years ago
|
||
Assignee | ||
Comment 4•7 years ago
|
||
Use a notifier to further simplify the code and ensure correctness.
Ensure we flush animations before returning animated values.
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Comment 5•7 years ago
|
||
![]() |
||
Updated•7 years ago
|
Assignee | ||
Comment 6•7 years ago
|
||
Comment 8•7 years ago
|
||
bugherder |
Description
•