Bug 1768189 - Part 33: Apply modernize-concat-nested-namespaces to dom/svg/SVGAnimatedRect.cpp ... r=andi

Depends on D145767

Differential Revision: https://phabricator.services.mozilla.com/D145769
This commit is contained in:
Kagami Sascha Rosylight 2022-05-09 20:41:16 +00:00
parent 58dc9a8c1f
commit 906416b43f
25 changed files with 58 additions and 118 deletions

View File

@ -10,8 +10,7 @@
#include "mozilla/dom/SVGRect.h"
#include "SVGAnimatedViewBox.h"
namespace mozilla {
namespace dom {
namespace mozilla::dom {
NS_SVG_VAL_IMPL_CYCLE_COLLECTION_WRAPPERCACHED(SVGAnimatedRect, mSVGElement)
@ -39,5 +38,4 @@ JSObject* SVGAnimatedRect::WrapObject(JSContext* aCx,
return SVGAnimatedRect_Binding::Wrap(aCx, this, aGivenProto);
}
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom

View File

@ -18,8 +18,7 @@
#include "nsIURI.h"
#include "prtime.h"
namespace mozilla {
namespace dom {
namespace mozilla::dom {
//----------------------------------------------------------------------
// nsISupports methods
@ -373,5 +372,4 @@ void SVGAnimationElement::AnimationTargetChanged() {
AnimationNeedsResample();
}
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom

View File

@ -21,8 +21,7 @@
} \
}
namespace mozilla {
namespace dom {
namespace mozilla::dom {
using SVGAnimationElementBase = SVGElement;
@ -126,7 +125,6 @@ class SVGAnimationElement : public SVGAnimationElementBase, public SVGTests {
NS_DEFINE_STATIC_IID_ACCESSOR(SVGAnimationElement,
MOZILLA_SVGANIMATIONELEMENT_IID)
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom
#endif // DOM_SVG_SVGANIMATIONELEMENT_H_

View File

@ -16,8 +16,7 @@ NS_IMPL_NS_NEW_SVG_ELEMENT(Circle)
using namespace mozilla::gfx;
namespace mozilla {
namespace dom {
namespace mozilla::dom {
JSObject* SVGCircleElement::WrapNode(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) {
@ -172,5 +171,4 @@ nsCSSPropertyID SVGCircleElement::GetCSSPropertyIdForAttrEnum(
}
}
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom

View File

@ -13,8 +13,7 @@
NS_IMPL_NS_NEW_SVG_ELEMENT(ClipPath)
namespace mozilla {
namespace dom {
namespace mozilla::dom {
using namespace SVGUnitTypes_Binding;
@ -52,5 +51,4 @@ bool SVGClipPathElement::IsUnitsObjectBoundingBox() const {
NS_IMPL_ELEMENT_CLONE_WITH_INIT(SVGClipPathElement)
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom

View File

@ -19,9 +19,7 @@
} \
}
namespace mozilla {
namespace dom {
namespace mozilla::dom {
class DOMSVGAnimatedNumberList;
@ -86,14 +84,12 @@ class SVGComponentTransferFunctionElement
NS_DEFINE_STATIC_IID_ACCESSOR(SVGComponentTransferFunctionElement,
NS_SVG_FE_COMPONENT_TRANSFER_FUNCTION_ELEMENT_CID)
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom
nsresult NS_NewSVGFEFuncRElement(
nsIContent** aResult, already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
namespace mozilla {
namespace dom {
namespace mozilla::dom {
class SVGFEFuncRElement : public SVGComponentTransferFunctionElement {
friend nsresult(::NS_NewSVGFEFuncRElement(
@ -114,14 +110,12 @@ class SVGFEFuncRElement : public SVGComponentTransferFunctionElement {
JS::Handle<JSObject*> aGivenProto) override;
};
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom
nsresult NS_NewSVGFEFuncGElement(
nsIContent** aResult, already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
namespace mozilla {
namespace dom {
namespace mozilla::dom {
class SVGFEFuncGElement : public SVGComponentTransferFunctionElement {
friend nsresult(::NS_NewSVGFEFuncGElement(
@ -142,14 +136,12 @@ class SVGFEFuncGElement : public SVGComponentTransferFunctionElement {
JS::Handle<JSObject*> aGivenProto) override;
};
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom
nsresult NS_NewSVGFEFuncBElement(
nsIContent** aResult, already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
namespace mozilla {
namespace dom {
namespace mozilla::dom {
class SVGFEFuncBElement : public SVGComponentTransferFunctionElement {
friend nsresult(::NS_NewSVGFEFuncBElement(
@ -170,14 +162,12 @@ class SVGFEFuncBElement : public SVGComponentTransferFunctionElement {
JS::Handle<JSObject*> aGivenProto) override;
};
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom
nsresult NS_NewSVGFEFuncAElement(
nsIContent** aResult, already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
namespace mozilla {
namespace dom {
namespace mozilla::dom {
class SVGFEFuncAElement : public SVGComponentTransferFunctionElement {
friend nsresult(::NS_NewSVGFEFuncAElement(
@ -198,7 +188,6 @@ class SVGFEFuncAElement : public SVGComponentTransferFunctionElement {
JS::Handle<JSObject*> aGivenProto) override;
};
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom
#endif // DOM_SVG_SVGCOMPONENTTRANSFERFUNCTIONELEMENT_H_

View File

@ -9,8 +9,7 @@
NS_IMPL_NS_NEW_SVG_ELEMENT(Defs)
namespace mozilla {
namespace dom {
namespace mozilla::dom {
JSObject* SVGDefsElement::WrapNode(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) {
@ -47,5 +46,4 @@ SVGDefsElement::IsAttributeMapped(const nsAtom* name) const {
SVGGraphicsElement::IsAttributeMapped(name);
}
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom

View File

@ -12,8 +12,7 @@
nsresult NS_NewSVGDefsElement(
nsIContent** aResult, already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
namespace mozilla {
namespace dom {
namespace mozilla::dom {
class SVGDefsElement final : public SVGGraphicsElement {
protected:
@ -36,7 +35,6 @@ class SVGDefsElement final : public SVGGraphicsElement {
virtual nsresult Clone(dom::NodeInfo*, nsINode** aResult) const override;
};
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom
#endif // DOM_SVG_SVGDEFSELEMENT_H_

View File

@ -9,8 +9,7 @@
NS_IMPL_NS_NEW_SVG_ELEMENT(Desc)
namespace mozilla {
namespace dom {
namespace mozilla::dom {
JSObject* SVGDescElement::WrapNode(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) {
@ -29,5 +28,4 @@ SVGDescElement::SVGDescElement(
NS_IMPL_ELEMENT_CLONE_WITH_INIT(SVGDescElement)
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom

View File

@ -13,8 +13,7 @@
nsresult NS_NewSVGDescElement(
nsIContent** aResult, already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
namespace mozilla {
namespace dom {
namespace mozilla::dom {
using SVGDescElementBase = SVGElement;
@ -32,7 +31,6 @@ class SVGDescElement final : public SVGDescElementBase {
nsresult Clone(dom::NodeInfo*, nsINode** aResult) const override;
};
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom
#endif // DOM_SVG_SVGDESCELEMENT_H_

View File

@ -19,8 +19,7 @@
using namespace mozilla::css;
using namespace mozilla::dom;
namespace mozilla {
namespace dom {
namespace mozilla::dom {
//----------------------------------------------------------------------
// Implementation
@ -37,8 +36,7 @@ nsresult SVGDocument::Clone(dom::NodeInfo* aNodeInfo, nsINode** aResult) const {
return NS_OK;
}
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom
////////////////////////////////////////////////////////////////////////
// Exported creation functions

View File

@ -86,8 +86,7 @@ nsresult NS_NewSVGElement(
return rv;
}
namespace mozilla {
namespace dom {
namespace mozilla::dom {
using namespace SVGUnitTypes_Binding;
NS_IMPL_ELEMENT_CLONE_WITH_INIT(SVGElement)
@ -2464,5 +2463,4 @@ void SVGElement::AddSizeOfExcludingThis(nsWindowSizes& aSizes,
}
}
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom

View File

@ -15,8 +15,7 @@
class nsAtom;
class nsIContent;
namespace mozilla {
namespace dom {
namespace mozilla::dom {
class SVGElementFactory {
public:
@ -28,8 +27,7 @@ using SVGContentCreatorFunction = nsresult (*)(
nsIContent** aResult, already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo,
mozilla::dom::FromParser aFromParser);
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom
#define SVG_TAG(_tag, _classname) \
nsresult NS_NewSVG##_classname##Element( \

View File

@ -17,8 +17,7 @@ NS_IMPL_NS_NEW_SVG_ELEMENT(Ellipse)
using namespace mozilla::gfx;
namespace mozilla {
namespace dom {
namespace mozilla::dom {
JSObject* SVGEllipseElement::WrapNode(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) {
@ -191,5 +190,4 @@ nsCSSPropertyID SVGEllipseElement::GetCSSPropertyIdForAttrEnum(
}
}
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom

View File

@ -13,8 +13,7 @@ NS_IMPL_NS_NEW_SVG_ELEMENT(FEBlend)
using namespace mozilla::gfx;
namespace mozilla {
namespace dom {
namespace mozilla::dom {
JSObject* SVGFEBlendElement::WrapNode(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) {
@ -112,5 +111,4 @@ SVGElement::StringAttributesInfo SVGFEBlendElement::GetStringInfo() {
ArrayLength(sStringInfo));
}
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom

View File

@ -12,8 +12,7 @@
nsresult NS_NewSVGFEBlendElement(
nsIContent** aResult, already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
namespace mozilla {
namespace dom {
namespace mozilla::dom {
using SVGFEBlendElementBase = SVGFE;
@ -64,7 +63,6 @@ class SVGFEBlendElement : public SVGFEBlendElementBase {
static StringInfo sStringInfo[3];
};
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom
#endif // DOM_SVG_SVGFEBLENDELEMENT_H_

View File

@ -17,8 +17,7 @@ NS_IMPL_NS_NEW_SVG_ELEMENT(FEColorMatrix)
using namespace mozilla::gfx;
namespace mozilla {
namespace dom {
namespace mozilla::dom {
JSObject* SVGFEColorMatrixElement::WrapNode(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) {
@ -135,5 +134,4 @@ SVGFEColorMatrixElement::GetNumberListInfo() {
ArrayLength(sNumberListInfo));
}
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom

View File

@ -14,8 +14,7 @@
nsresult NS_NewSVGFEColorMatrixElement(
nsIContent** aResult, already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
namespace mozilla {
namespace dom {
namespace mozilla::dom {
class DOMSVGAnimatedNumberList;
@ -73,7 +72,6 @@ class SVGFEColorMatrixElement : public SVGFEColorMatrixElementBase {
static NumberListInfo sNumberListInfo[1];
};
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom
#endif // DOM_SVG_SVGFECOLORMATRIXELEMENT_H_

View File

@ -17,8 +17,7 @@ NS_IMPL_NS_NEW_SVG_ELEMENT(FEComponentTransfer)
using namespace mozilla::gfx;
;
namespace mozilla {
namespace dom {
namespace mozilla::dom {
JSObject* SVGFEComponentTransferElement::WrapNode(
JSContext* aCx, JS::Handle<JSObject*> aGivenProto) {
@ -99,5 +98,4 @@ nsresult SVGFEComponentTransferElement::BindToTree(BindContext& aCtx,
return SVGFE::BindToTree(aCtx, aParent);
}
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom

View File

@ -12,8 +12,7 @@
nsresult NS_NewSVGFEComponentTransferElement(
nsIContent** aResult, already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
namespace mozilla {
namespace dom {
namespace mozilla::dom {
using SVGFEComponentTransferElementBase = SVGFE;
@ -57,7 +56,6 @@ class SVGFEComponentTransferElement : public SVGFEComponentTransferElementBase {
static StringInfo sStringInfo[2];
};
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom
#endif // DOM_SVG_SVGFECOMPONENTTRANSFERELEMENT_H_

View File

@ -13,8 +13,7 @@ NS_IMPL_NS_NEW_SVG_ELEMENT(FEComposite)
using namespace mozilla::gfx;
namespace mozilla {
namespace dom {
namespace mozilla::dom {
JSObject* SVGFECompositeElement::WrapNode(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) {
@ -145,5 +144,4 @@ SVGElement::StringAttributesInfo SVGFECompositeElement::GetStringInfo() {
ArrayLength(sStringInfo));
}
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom

View File

@ -14,8 +14,7 @@
nsresult NS_NewSVGFECompositeElement(
nsIContent** aResult, already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
namespace mozilla {
namespace dom {
namespace mozilla::dom {
using SVGFECompositeElementBase = SVGFE;
@ -76,7 +75,6 @@ class SVGFECompositeElement : public SVGFECompositeElementBase {
static StringInfo sStringInfo[3];
};
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom
#endif // DOM_SVG_SVGFECOMPOSITEELEMENT_H_

View File

@ -18,8 +18,7 @@ NS_IMPL_NS_NEW_SVG_ELEMENT(FEConvolveMatrix)
using namespace mozilla::gfx;
namespace mozilla {
namespace dom {
namespace mozilla::dom {
JSObject* SVGFEConvolveMatrixElement::WrapNode(
JSContext* aCx, JS::Handle<JSObject*> aGivenProto) {
@ -276,5 +275,4 @@ SVGFEConvolveMatrixElement::GetNumberListInfo() {
ArrayLength(sNumberListInfo));
}
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom

View File

@ -19,9 +19,7 @@
nsresult NS_NewSVGFEConvolveMatrixElement(
nsIContent** aResult, already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
namespace mozilla {
namespace dom {
namespace mozilla::dom {
class DOMSVGAnimatedNumberList;
class DOMSVGAnimatedBoolean;
@ -113,7 +111,6 @@ class SVGFEConvolveMatrixElement : public SVGFEConvolveMatrixElementBase {
static NumberListInfo sNumberListInfo[1];
};
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom
#endif // DOM_SVG_SVGFECONVOLVEMATRIXELEMENT_H_

View File

@ -14,8 +14,7 @@ NS_IMPL_NS_NEW_SVG_ELEMENT(FEDiffuseLighting)
using namespace mozilla::gfx;
namespace mozilla {
namespace dom {
namespace mozilla::dom {
JSObject* SVGFEDiffuseLightingElement::WrapNode(
JSContext* aCx, JS::Handle<JSObject*> aGivenProto) {
@ -87,5 +86,4 @@ nsresult SVGFEDiffuseLightingElement::BindToTree(BindContext& aCtx,
return SVGFE::BindToTree(aCtx, aParent);
}
} // namespace dom
} // namespace mozilla
} // namespace mozilla::dom