Bug 1450617: No need to ResolveTag to disable first-line on fieldsets. r=bz

We don't extend HTML fieldsets with XBL, and I don't think we want to start
doing that now.

MozReview-Commit-ID: GiltTWXUBzZ
This commit is contained in:
Emilio Cobos Álvarez 2018-04-02 05:52:57 +02:00
Родитель 364d1d533b
Коммит 93307076b0
1 изменённых файлов: 1 добавлений и 11 удалений

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

@ -9355,17 +9355,7 @@ nsCSSFrameConstructor::ShouldHaveFirstLineStyle(nsIContent* aContent,
nsLayoutUtils::HasPseudoStyle(aContent, aComputedStyle,
CSSPseudoElementType::firstLine,
mPresShell->GetPresContext());
if (hasFirstLine) {
// But disable for fieldsets
int32_t namespaceID;
nsAtom* tag = mDocument->BindingManager()->ResolveTag(aContent,
&namespaceID);
// This check must match the one in FindHTMLData.
hasFirstLine = tag != nsGkAtoms::fieldset ||
namespaceID != kNameSpaceID_XHTML;
}
return hasFirstLine;
return hasFirstLine && !aContent->IsHTMLElement(nsGkAtoms::fieldset);
}
void