summaryrefslogtreecommitdiff
path: root/dom/base/nsXMLContentSerializer.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-08-28 14:39:17 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-08-28 14:39:17 +0200
commit17d9c0cf90fdf2a92ea914f8a142d823476ab685 (patch)
treedc251f391fe9657bc08341dc4cbcfd0ca431b636 /dom/base/nsXMLContentSerializer.h
parent4565bf309884ba2a9fae83f28865d87ae757ca95 (diff)
downloadaura-central-17d9c0cf90fdf2a92ea914f8a142d823476ab685.tar.gz
Issue mcp-graveyard/UXP%1221: Pass the original element into
nsXMLContentSerializer::CheckElementEnd so that we can properly determine whether it has children. This resolves %1221
Diffstat (limited to 'dom/base/nsXMLContentSerializer.h')
-rw-r--r--dom/base/nsXMLContentSerializer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/dom/base/nsXMLContentSerializer.h b/dom/base/nsXMLContentSerializer.h
index 941acb179..2f76b0892 100644
--- a/dom/base/nsXMLContentSerializer.h
+++ b/dom/base/nsXMLContentSerializer.h
@@ -59,6 +59,7 @@ class nsXMLContentSerializer : public nsIContentSerializer {
nsAString& aStr) override;
NS_IMETHOD AppendElementEnd(mozilla::dom::Element* aElement,
+ mozilla::dom::Element* aOriginalElement,
nsAString& aStr) override;
NS_IMETHOD Flush(nsAString& aStr) override { return NS_OK; }
@@ -263,6 +264,7 @@ class nsXMLContentSerializer : public nsIContentSerializer {
* @return boolean true if the element can be output
*/
virtual bool CheckElementEnd(mozilla::dom::Element* aElement,
+ mozilla::dom::Element* aOriginalElement,
bool& aForceFormat,
nsAString& aStr);