Bug 1304441 Part 1 - Remove unneeded check when constructing frame for summary. r=bz

SummaryFrame had been removed in bug 1258657, so now HTMLSummaryElement
is always rendered as an ordinary inline or block frame. Therefore, the
check in FindHTMLData is not needed anymore.

MozReview-Commit-ID: Ikxla6QoNLT
This commit is contained in:
Ting-Yu Lin 2016-10-05 14:43:31 +08:00
Родитель bdfa3e49c9
Коммит 8ccd148e08
1 изменённых файлов: 1 добавлений и 10 удалений

Просмотреть файл

@ -3561,16 +3561,7 @@ nsCSSFrameConstructor::FindHTMLData(Element* aElement,
return nullptr;
}
if (aTag == nsGkAtoms::details || aTag == nsGkAtoms::summary) {
if (!HTMLDetailsElement::IsDetailsEnabled()) {
return nullptr;
}
}
if (aTag == nsGkAtoms::summary &&
(!aParentFrame || aParentFrame->GetType() != nsGkAtoms::detailsFrame)) {
// <summary> is special only if it is a direct child of <details>. If it
// isn't, construct it as a normal block frame instead of a summary frame.
if (aTag == nsGkAtoms::details && !HTMLDetailsElement::IsDetailsEnabled()) {
return nullptr;
}