зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1770944 - Remove `nsGkAtoms::mozbrowser`. r=smaug
Depends on D175898 Differential Revision: https://phabricator.services.mozilla.com/D183229
This commit is contained in:
Родитель
0c4bcec338
Коммит
017b6fb773
|
@ -249,18 +249,6 @@ static nsIContent* GetClickableAncestor(
|
|||
return content;
|
||||
}
|
||||
|
||||
// Bug 921928: we don't have access to the content of remote iframe.
|
||||
// So fluffing won't go there. We do an optimistic assumption here:
|
||||
// that the content of the remote iframe needs to be a target.
|
||||
if (content->IsHTMLElement(nsGkAtoms::iframe) &&
|
||||
content->AsElement()->AttrValueIs(kNameSpaceID_None,
|
||||
nsGkAtoms::mozbrowser,
|
||||
nsGkAtoms::_true, eIgnoreCase) &&
|
||||
content->AsElement()->AttrValueIs(kNameSpaceID_None, nsGkAtoms::remote,
|
||||
nsGkAtoms::_true, eIgnoreCase)) {
|
||||
return content;
|
||||
}
|
||||
|
||||
// See nsCSSFrameConstructor::FindXULTagData. This code is not
|
||||
// really intended to be used with XUL, though.
|
||||
if (content->IsAnyOfXULElements(
|
||||
|
|
|
@ -3450,11 +3450,8 @@ void RestyleManager::MaybeRestyleForNthOfState(ServoStyleSet& aStyleSet,
|
|||
|
||||
static inline bool AttributeInfluencesOtherPseudoClassState(
|
||||
const Element& aElement, const nsAtom* aAttribute) {
|
||||
// We must record some state for :-moz-browser-frame,
|
||||
// :-moz-table-border-nonzero, and :-moz-select-list-box.
|
||||
if (aAttribute == nsGkAtoms::mozbrowser) {
|
||||
return aElement.IsAnyOfHTMLElements(nsGkAtoms::iframe, nsGkAtoms::frame);
|
||||
}
|
||||
// We must record some state for :-moz-table-border-nonzero and
|
||||
// :-moz-select-list-box.
|
||||
|
||||
if (aAttribute == nsGkAtoms::border) {
|
||||
return aElement.IsHTMLElement(nsGkAtoms::table);
|
||||
|
|
|
@ -206,7 +206,6 @@ STATIC_ATOMS = [
|
|||
Atom("box", "box"),
|
||||
Atom("br", "br"),
|
||||
Atom("browser", "browser"),
|
||||
Atom("mozbrowser", "mozbrowser"),
|
||||
Atom("button", "button"),
|
||||
Atom("callTemplate", "call-template"),
|
||||
Atom("canvas", "canvas"),
|
||||
|
|
Загрузка…
Ссылка в новой задаче