Bug 1270174 - Follow-up to only return early in the case that we find insertAnonymousContent content. r=orange

--HG--
extra : rebase_source : e8b34d71776856ab09735e067741f9203aa61890
This commit is contained in:
Jonathan Watt 2016-05-16 19:39:16 +01:00
Родитель c85d7b355d
Коммит 9aa4a6d7d5
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -52,15 +52,15 @@ nsReferencedElement::Reset(nsIContent* aFromContent, nsIURI* aURI,
if (!binding) {
// This happens, for example, if aFromContent is part of the content
// inserted by a call to nsIDocument::InsertAnonymousContent, which we
// also want to handle.
// also want to handle. (It also happens for <use>'s anonymous
// content etc.)
Element* anonRoot =
doc->GetAnonRootIfInAnonymousContentContainer(aFromContent);
if (anonRoot) {
mElement = nsContentUtils::MatchElementId(anonRoot, ref);
// We don't have watching working yet for anonymous content, so bail out here.
return;
}
// We don't have watching working yet for anonymous content, so bail out here.
return;
} else {
bool isEqualExceptRef;
rv = aURI->EqualsExceptRef(binding->PrototypeBinding()->DocURI(),