Bug 1275835 - Part 1: Move custom element codes from nsDocument to CustomElementsRegistry; r=wchen

MozReview-Commit-ID: 9gTSFrYW7o3
This commit is contained in:
Edgar Chen
2016-08-30 11:48:53 +08:00
parent 66fd5d3f38
commit f37acbbb74
15 changed files with 756 additions and 691 deletions

View File

@@ -440,9 +440,7 @@ nsHtml5TreeOperation::CreateElement(int32_t aNs,
// Custom element setup may be needed if there is an "is" attribute.
if (kNameSpaceID_None == nsuri && !prefix && nsGkAtoms::is == localName) {
newContent->OwnerDoc()->SetupCustomElement(newContent,
newContent->GetNameSpaceID(),
&value);
nsContentUtils::SetupCustomElement(newContent, &value);
}
}
}