mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 11:37:30 +09:00
Bug 1331322 - Allow tagging of pseudo-implementing native anonymous content with the pseudo type at creation time
* Stop using a node bit for HasExplicitBaseURI * Move MAY_HAVE_CLASS to mBoolFlags * Add a flag to indicate that a node is native anonymous content * Allow tagging of pseudo-implementing native anonymous content with the pseudo type at creation time, and eliminate explicit style contexts in nsIAnonymousContentCreator::ContentInfo Tag #1375
This commit is contained in:
parent
31048968fd
commit
b723a5c8c4
25 changed files with 267 additions and 128 deletions
|
|
@ -204,7 +204,7 @@ nsXULElement::Create(nsXULPrototypeElement* aPrototype, mozilla::dom::NodeInfo *
|
|||
element->SetHasID();
|
||||
}
|
||||
if (aPrototype->mHasClassAttribute) {
|
||||
element->SetFlags(NODE_MAY_HAVE_CLASS);
|
||||
element->SetMayHaveClass();
|
||||
}
|
||||
if (aPrototype->mHasStyleAttribute) {
|
||||
element->SetMayHaveStyle();
|
||||
|
|
@ -374,7 +374,7 @@ nsXULElement::Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult) const
|
|||
element->SetHasID();
|
||||
}
|
||||
if (originalName->Equals(nsGkAtoms::_class)) {
|
||||
element->SetFlags(NODE_MAY_HAVE_CLASS);
|
||||
element->SetMayHaveClass();
|
||||
}
|
||||
if (originalName->Equals(nsGkAtoms::style)) {
|
||||
element->SetMayHaveStyle();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue