mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-21 20:03:08 +09:00
Bug 1401097 - Simplify gHTMLElements and remove redundant conditions in nsXHTMLContentSerializer::LineBreakAfterClose()
Tag #1375
This commit is contained in:
parent
5917636e83
commit
2a185b517b
2 changed files with 167 additions and 209 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue