diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-08-28 14:39:17 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-08-28 14:39:17 +0200 |
commit | b58a8779c02e8d4abdaae49e1fcc11efeb407bee (patch) | |
tree | dc251f391fe9657bc08341dc4cbcfd0ca431b636 /dom/base/nsXHTMLContentSerializer.cpp | |
parent | 31def0da05280ab834c3585c37ec1b5cde29c89c (diff) | |
download | UXP-b58a8779c02e8d4abdaae49e1fcc11efeb407bee.tar UXP-b58a8779c02e8d4abdaae49e1fcc11efeb407bee.tar.gz UXP-b58a8779c02e8d4abdaae49e1fcc11efeb407bee.tar.lz UXP-b58a8779c02e8d4abdaae49e1fcc11efeb407bee.tar.xz UXP-b58a8779c02e8d4abdaae49e1fcc11efeb407bee.zip |
Issue #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/nsXHTMLContentSerializer.cpp')
-rwxr-xr-x | dom/base/nsXHTMLContentSerializer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dom/base/nsXHTMLContentSerializer.cpp b/dom/base/nsXHTMLContentSerializer.cpp index 111ed46c7..0a39ef663 100755 --- a/dom/base/nsXHTMLContentSerializer.cpp +++ b/dom/base/nsXHTMLContentSerializer.cpp @@ -514,6 +514,7 @@ nsXHTMLContentSerializer::CheckElementStart(nsIContent * aContent, bool nsXHTMLContentSerializer::CheckElementEnd(mozilla::dom::Element* aElement, + mozilla::dom::Element* aOriginalElement, bool& aForceFormat, nsAString& aStr) { @@ -532,7 +533,7 @@ nsXHTMLContentSerializer::CheckElementEnd(mozilla::dom::Element* aElement, } bool dummyFormat; - return nsXMLContentSerializer::CheckElementEnd(aElement, dummyFormat, aStr); + return nsXMLContentSerializer::CheckElementEnd(aElement, aOriginalElement, dummyFormat, aStr); } bool |