зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1401097 (part 2) - Remove redundant conditions in nsXHTMLContentSerializer::LineBreakAfterClose(). r=mrbkap.
The removed tags don't need a separate check because nsHTMLElement::IsBlock() will return true for them. --HG-- extra : rebase_source : 45168737643ee56b2194556f88fbcf52917dfd56
This commit is contained in:
Родитель
c07fbf3cf6
Коммит
bc1b1e795f
|
@ -666,17 +666,12 @@ nsXHTMLContentSerializer::LineBreakAfterClose(int32_t aNamespaceID, nsIAtom* aNa
|
||||||
(aName == nsGkAtoms::tr) ||
|
(aName == nsGkAtoms::tr) ||
|
||||||
(aName == nsGkAtoms::th) ||
|
(aName == nsGkAtoms::th) ||
|
||||||
(aName == nsGkAtoms::td) ||
|
(aName == nsGkAtoms::td) ||
|
||||||
(aName == nsGkAtoms::pre) ||
|
|
||||||
(aName == nsGkAtoms::title) ||
|
(aName == nsGkAtoms::title) ||
|
||||||
(aName == nsGkAtoms::li) ||
|
|
||||||
(aName == nsGkAtoms::dt) ||
|
(aName == nsGkAtoms::dt) ||
|
||||||
(aName == nsGkAtoms::dd) ||
|
(aName == nsGkAtoms::dd) ||
|
||||||
(aName == nsGkAtoms::blockquote) ||
|
|
||||||
(aName == nsGkAtoms::select) ||
|
(aName == nsGkAtoms::select) ||
|
||||||
(aName == nsGkAtoms::option) ||
|
(aName == nsGkAtoms::option) ||
|
||||||
(aName == nsGkAtoms::p) ||
|
(aName == nsGkAtoms::map)) {
|
||||||
(aName == nsGkAtoms::map) ||
|
|
||||||
(aName == nsGkAtoms::div)) {
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче