Move nsSVGLength2 and nsSVGNumber2 into the mozilla namespace
Categories
(Core :: SVG, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: longsonr, Assigned: longsonr)
References
Details
Attachments
(3 files)
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Now that the wrapper classes are called DOMSVGAnimated the internal representations can be named SVGAnimated.
Given that nsSVGLength2 and nsSVGNumber2 will require moving into the mozilla namespace they are not included here.
Assignee | ||
Comment 2•5 years ago
|
||
This would get you 99% of the patch.
hg mv -f dom/svg/SVGBoolean.cpp dom/svg/SVGAnimatedBoolean.cpp
hg mv -f dom/svg/SVGBoolean.h dom/svg/SVGAnimatedBoolean.h
hg mv -f dom/svg/SVGClass.cpp dom/svg/SVGAnimatedClass.cpp
hg mv -f dom/svg/SVGClass.h dom/svg/SVGAnimatedClass.h
hg mv -f dom/svg/SVGEnum.cpp dom/svg/SVGAnimatedEnumeration.cpp
hg mv -f dom/svg/SVGEnum.h dom/svg/SVGAnimatedEnumeration.h
hg mv -f dom/svg/SVGInteger.cpp dom/svg/SVGAnimatedInteger.cpp
hg mv -f dom/svg/SVGInteger.h dom/svg/SVGAnimatedInteger.h
hg mv -f dom/svg/SVGIntegerPair.cpp dom/svg/SVGAnimatedIntegerPair.cpp
hg mv -f dom/svg/SVGIntegerPair.h dom/svg/SVGAnimatedIntegerPair.h
hg mv -f dom/svg/SVGNumberPair.cpp dom/svg/SVGAnimatedNumberPair.cpp
hg mv -f dom/svg/SVGNumberPair.h dom/svg/SVGAnimatedNumberPair.h
hg mv -f dom/svg/SVGOrient.cpp dom/svg/SVGAnimatedOrient.cpp
hg mv -f dom/svg/SVGOrient.h dom/svg/SVGAnimatedOrient.h
hg mv -f dom/svg/SVGString.cpp dom/svg/SVGAnimatedString.cpp
hg mv -f dom/svg/SVGString.h dom/svg/SVGAnimatedString.h
hg mv -f dom/svg/SVGViewBox.cpp dom/svg/SVGAnimatedViewBox.cpp
hg mv -f dom/svg/SVGViewBox.h dom/svg/SVGAnimatedViewBox.h
cd /dom/svg (and then repeat the below dom/base and layout/svg perhaps although I made the changes there manually)
sed -i '.bak' 's/SVGString/SVGAnimatedString/g' *.cpp
sed -i '.bak' 's/SVGString/SVGAnimatedString/g' *.h
sed -i '.bak' 's/SVGClass/SVGAnimatedClass/g' *.h
sed -i '.bak' 's/SVGClass/SVGAnimatedClass/g' *.cpp
sed -i '.bak' 's/SVGBoolean/SVGAnimatedBoolean/g' *.cpp
sed -i '.bak' 's/SVGBoolean/SVGAnimatedBoolean/g' *.h
sed -i '.bak' 's/SVGEnum/SVGAnimatedEnumeration/g' *.h
sed -i '.bak' 's/SVGEnum/SVGAnimatedEnumeration/g' *.cpp
sed -i '.bak' 's/SVGInteger/SVGAnimatedInteger/g' *.cpp
sed -i '.bak' 's/SVGOrient/SVGAnimatedOrient/g' *.cpp
sed -i '.bak' 's/SVGOrient/SVGAnimatedOrient/g' *.h
sed -i '.bak' 's/SVGInteger/SVGAnimatedInteger/g' *.h
sed -i '.bak' 's/SVGOrient/SVGAnimatedOrient/g' *.h
sed -i '.bak' 's/SVGOrient/SVGAnimatedOrient/g' *.cpp
sed -i '.bak' 's/SVGInteger/SVGAnimatedInteger/g' *.cpp
sed -i '.bak' 's/SVGInteger/SVGAnimatedInteger/g' *.h
sed -i '.bak' 's/SVGEnum/SVGAnimatedEnumeration/g' *.cpp
sed -i '.bak' 's/SVGEnum/SVGAnimatedEnumeration/g' *.h
sed -i '.bak' 's/SVGBoolean/SVGAnimatedBoolean/g' *.h
sed -i '.bak' 's/SVGAnimatedStringList/SVGStringList/g' *.cpp
sed -i '.bak' 's/SVGAnimatedStringList/SVGStringList/g' *.h
sed -i '.bak' 's/SVGAnimatedOrientSMILType/SVGOrientSMILType/g' *.cpp
sed -i '.bak' 's/SVGAnimatedOrientSMILType/SVGOrientSMILType/g' *.h
sed -i '.bak' 's/SVGNumberPair/SVGAnimatedNumberPair/g' *.cpp
sed -i '.bak' 's/SVGNumberPair/SVGAnimatedNumberPair/g' *.h
sed -i '.bak' 's/SVGIntegerPair/SVGAnimatedIntegerPair/g' *.h
sed -i '.bak' 's/SVGIntegerPair/SVGAnimatedIntegerPair/g' *.cpp
sed -i '.bak' 's/SVGAnimatedIntegerPairSMILType/SVGIntegerPairSMILType/g' *.h
sed -i '.bak' 's/SVGAnimatedIntegerPairSMILType/SVGIntegerPairSMILType/g' *.cpp
sed -i '.bak' 's/SVGAnimatedNumberPairSMILType/SVGNumberPairSMILType/g' *.cpp
sed -i '.bak' 's/SVGAnimatedNumberPairSMILType/SVGNumberPairSMILType/g' *.h
sed -i '.bak' 's/SVGAnimatedStringInfo/SVGStringInfo/g' *.cpp
sed -i '.bak' 's/SVGAnimatedStringInfo/SVGStringInfo/g' *.h
sed -i '.bak' 's/SVGAnimatedEnumerationMapping/SVGEnumMapping/g' *.cpp
sed -i '.bak' 's/SVGAnimatedEnumerationMapping/SVGEnumMapping/g' *.h
sed -i '.bak' 's/SVGAnimatedEnumerationValue/SVGEnumValue/g' *.h
sed -i '.bak' 's/SVGAnimatedEnumerationValue/SVGEnumValue/g' *.cpp
sed -i '.bak' 's/SVGViewBox/SVGAnimatedViewBox/g' *.h
sed -i '.bak' 's/SVGViewBox/SVGAnimatedViewBox/g' *.cpp
sed -i '.bak' 's/SVGAnimatedViewBoxRect/SVGViewBoxRect/g' *.cpp
sed -i '.bak' 's/SVGAnimatedViewBoxRect/SVGViewBoxRect/g' *.h
sed -i '.bak' 's/SVGAnimatedViewBoxSMILType/SVGViewBoxSMILType/g' *.cpp
sed -i '.bak' 's/SVGAnimatedViewBoxSMILType/SVGViewBoxSMILType/g' *.h
sed -i '.bak' 's/SVGAnimatedViewBoxTearoffTable/SVGViewBoxTearoffTable/g' *.cpp
sed -i '.bak' 's/SVGAnimatedViewBoxTearoffTable/SVGViewBoxTearoffTable/g' *.cpp
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Pushed by longsonr@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/1242bd22d38d Part 1 - Move most internal attribute representation classes to be of the form SVGAnimated. r=dholbert
Comment 4•5 years ago
|
||
bugherder |
Assignee | ||
Comment 5•5 years ago
|
||
nsSVGLength2 becomes SVGAnimatedLength in the mozilla namespace, similar for nsSVGNumber2
Assignee | ||
Comment 6•5 years ago
|
||
The mechanical parts are
hg mv -f dom/svg/nsSVGLength2.cpp dom/svg/SVGAnimatedLength.cpp
hg mv -f dom/svg/nsSVGLength2.h dom/svg/SVGAnimateLength.h
hg mv -f dom/svg/nsSVGNumber2.cpp dom/svg/SVGAnimatedNumber.cpp
hg mv -f dom/svg/nsSVGNumber2.h dom/svg/SVGAnimatedNumber.h
cd dom/svg
sed -i '.bak' 's/nsSVGLength2/SVGAnimatedLength/g' *.h
sed -i '.bak' 's/nsSVGLength2/SVGAnimatedLength/g' *.cpp
sed -i '.bak' 's/nsSVGNumber2/SVGAnimatedNumber/g' *.cpp
sed -i '.bak' 's/nsSVGNumber2/SVGAnimatedNumber/g' *.h
rm *.bak
Assignee | ||
Comment 7•5 years ago
|
||
Now that SVGViewBox has become SVGAnimatedViewBox SVGViewBoxRect can be named SVGViewBox.
Pushed by longsonr@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/481a37f3892a Part 2 - Move nsSVGLength2 and nsSVGNumber2 to the mozilla namespace renaming them to be SVGAnimatedLength and SVGAnimatedNumber. r=dholbert
Comment 9•5 years ago
|
||
Backed out changeset 481a37f3892a (Bug 1540408) for build bustages in SVGViewportElement.h
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=238995766&repo=mozilla-inbound&lineNumber=17598
Backout: https://hg.mozilla.org/integration/mozilla-inbound/rev/1b7309612d60dc2a2d8e3fcf99416a9fa597dd89
Comment 10•5 years ago
•
|
||
Looks like the patch is missing a "d" in its rename there:
rename from dom/svg/nsSVGLength2.h
rename to dom/svg/SVGAnimateLength.h
^^^ missing a "d"
(quoting https://hg.mozilla.org/integration/mozilla-inbound/rev/481a37f3892a )
Comment 11•5 years ago
|
||
Pushed by longsonr@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/ea65b4513b3b Part 2 - Move nsSVGLength2 and nsSVGNumber2 to the mozilla namespace renaming them to be SVGAnimatedLength and SVGAnimatedNumber. r=dholbert
Comment 12•5 years ago
|
||
Pushed by longsonr@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/0d9193a6224f Part 3 - Rename SVGViewBoxRect to SVGViewBox r=dholbert
Assignee | ||
Updated•5 years ago
|
Comment 13•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ea65b4513b3b
https://hg.mozilla.org/mozilla-central/rev/0d9193a6224f
Description
•