mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 824327: Add a namespaced version of NS_NewSVGXXXElement r=bz
This commit is contained in:
parent
23d67cf579
commit
88ce61018a
@ -640,6 +640,25 @@ NS_NewSVG##_elementName##Element(nsIContent **aResult, \
|
||||
return rv; \
|
||||
}
|
||||
|
||||
#define NS_IMPL_NS_NEW_NAMESPACED_SVG_ELEMENT(_elementName) \
|
||||
nsresult \
|
||||
NS_NewSVG##_elementName##Element(nsIContent **aResult, \
|
||||
already_AddRefed<nsINodeInfo> aNodeInfo) \
|
||||
{ \
|
||||
nsRefPtr<mozilla::dom::SVG##_elementName##Element> it = \
|
||||
new mozilla::dom::SVG##_elementName##Element(aNodeInfo); \
|
||||
\
|
||||
nsresult rv = it->Init(); \
|
||||
\
|
||||
if (NS_FAILED(rv)) { \
|
||||
return rv; \
|
||||
} \
|
||||
\
|
||||
it.forget(aResult); \
|
||||
\
|
||||
return rv; \
|
||||
}
|
||||
|
||||
#define NS_IMPL_NS_NEW_SVG_ELEMENT_CHECK_PARSER(_elementName) \
|
||||
nsresult \
|
||||
NS_NewSVG##_elementName##Element(nsIContent **aResult, \
|
||||
|
Loading…
Reference in New Issue
Block a user