mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1163105 - Make nsReferencedElement work with referencing elements that are not in their document's DOM tree. r=roc
This commit is contained in:
parent
dc7e714724
commit
ca3c31219b
@ -47,7 +47,7 @@ nsReferencedElement::Reset(nsIContent* aFromContent, nsIURI* aURI,
|
||||
return;
|
||||
|
||||
// Get the current document
|
||||
nsIDocument *doc = aFromContent->GetComposedDoc();
|
||||
nsIDocument *doc = aFromContent->OwnerDoc();
|
||||
if (!doc)
|
||||
return;
|
||||
|
||||
@ -124,7 +124,7 @@ void
|
||||
nsReferencedElement::ResetWithID(nsIContent* aFromContent, const nsString& aID,
|
||||
bool aWatch)
|
||||
{
|
||||
nsIDocument *doc = aFromContent->GetComposedDoc();
|
||||
nsIDocument *doc = aFromContent->OwnerDoc();
|
||||
if (!doc)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user