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