зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
bdfa3e49c9
Коммит
8ccd148e08
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче