diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 06:36:20 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 06:36:20 -0400 |
commit | 846e0fa4f5aca0e75e37c421689d69bc58a2d3f6 (patch) | |
tree | 2e8fe86f85b6d9538d5e0ab70ef67e840a2b2f1a /dom/base | |
parent | 5f12940329ba496da5730863cae94cd8c0b145da (diff) | |
download | UXP-846e0fa4f5aca0e75e37c421689d69bc58a2d3f6.tar UXP-846e0fa4f5aca0e75e37c421689d69bc58a2d3f6.tar.gz UXP-846e0fa4f5aca0e75e37c421689d69bc58a2d3f6.tar.lz UXP-846e0fa4f5aca0e75e37c421689d69bc58a2d3f6.tar.xz UXP-846e0fa4f5aca0e75e37c421689d69bc58a2d3f6.zip |
Bug 1401097 - Simplify gHTMLElements and remove redundant conditions in nsXHTMLContentSerializer::LineBreakAfterClose()
Tag #1375
Diffstat (limited to 'dom/base')
-rwxr-xr-x | dom/base/nsXHTMLContentSerializer.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/dom/base/nsXHTMLContentSerializer.cpp b/dom/base/nsXHTMLContentSerializer.cpp index aa330364b..42874f02b 100755 --- a/dom/base/nsXHTMLContentSerializer.cpp +++ b/dom/base/nsXHTMLContentSerializer.cpp @@ -737,17 +737,12 @@ nsXHTMLContentSerializer::LineBreakAfterClose(int32_t aNamespaceID, nsIAtom* aNa (aName == nsGkAtoms::tr) || (aName == nsGkAtoms::th) || (aName == nsGkAtoms::td) || - (aName == nsGkAtoms::pre) || (aName == nsGkAtoms::title) || - (aName == nsGkAtoms::li) || (aName == nsGkAtoms::dt) || (aName == nsGkAtoms::dd) || - (aName == nsGkAtoms::blockquote) || (aName == nsGkAtoms::select) || (aName == nsGkAtoms::option) || - (aName == nsGkAtoms::p) || - (aName == nsGkAtoms::map) || - (aName == nsGkAtoms::div)) { + (aName == nsGkAtoms::map)) { return true; } return nsHTMLElement::IsBlock(nsHTMLTags::CaseSensitiveAtomTagToId(aName)); |