Do some refactoring in support of moving nsSVGLength2 and nsSVGNumber2 into the mozilla namespace
Categories
(Core :: SVG, enhancement, P3)
Tracking
()
People
(Reporter: longsonr, Assigned: longsonr)
Details
Attachments
(5 external files)
| Assignee | ||
Comment 1•7 years ago
|
||
I propose
a) move SVGLength to SVGLengthListItem
b) move nsSVGLength2 to SVGLength
Same for SVGNumber/nsSVGNumber2
I'm aware of bug 591808 but I'm not sure that
a) fits with the naming of all other things e.g. SVGAngle, DOMSVGAngle and SVGAnimatedAngle
b) what would happen to the existing SVGAnimatedLength class
suggestions appreciated before I start running sed to rename everything
Updated•7 years ago
|
Comment 2•7 years ago
|
||
I think I'd rather rename SVGAnimatedLength to DOMSVGAnimatedLength, then rename nsSVGLength2 to SVGAnimatedLength (and leave SVGLength as it is). That nsSVGLength2 is actually two values (a base and anim value) should be reflected in its name I think. Does that sound ok?
| Assignee | ||
Comment 3•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Comment 5•7 years ago
|
||
nsSVGLength2 should be called SVGAnimatedLength, however there is already a SVGAnimatedLength class.
We'll rename SVGAnimatedLength (and similar classes) to DOMSVGAnimatedLength in preparation.
Comment 6•7 years ago
|
||
| bugherder | ||
Comment 7•7 years ago
•
|
||
(In reply to Robert Longson [:longsonr] from comment #5)
We'll rename SVGAnimatedLength (and similar classes) to DOMSVGAnimatedLength in preparation.
So just to be sure I understand: is the idea here that...
- our internal representations will be named SVGFoo
- the dom wrapper versions will all be named DOMSVGFoo
?
I think that makes sense, just want to be sure there aren't important subtleties/exceptions that I'm missing.
Comment 10•7 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 11•7 years ago
|
||
SVGViewBox is going to become SVGAnimatedViewBox its simpler to avoid using it in this spot
| Assignee | ||
Comment 12•7 years ago
|
||
We're going to rename some of these classes and we don't need the typedefs so remove them
| Assignee | ||
Comment 13•7 years ago
|
||
Comment 14•7 years ago
•
|
||
Note: you might consider morphing this bug to be titled e.g. "Do some refactoring in support of moving nsSVGLength2 and nsSVGNumber2 into the mozilla namespace", and file a new bug for the still-to-be-done tasks here.
(It looks like this bug already spans 2 releases -- part 1 landed in Firefox 67 Nightly, and subsequent parts will be landing in various weeks of Firefox 68 Nightly, I think. If some part here happens to cause a regression that we find out about in a month or so, then it becomes nontrivial to e.g. figure out which releases might be affected, what needs backing out & where, etc. in a bug like this whose patches span multiple weeks/releases.)
Comment 15•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
Comment 16•7 years ago
|
||
| bugherder | ||
| Assignee | ||
Updated•7 years ago
|
Description
•