mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1249377 - Hold a strong reference to |root| in nsHTMLDocument::SetBody. r=bz
This commit is contained in:
parent
536547f4bf
commit
5e75403abe
@ -1034,7 +1034,7 @@ nsHTMLDocument::SetBody(nsIDOMHTMLElement* aBody)
|
|||||||
void
|
void
|
||||||
nsHTMLDocument::SetBody(nsGenericHTMLElement* newBody, ErrorResult& rv)
|
nsHTMLDocument::SetBody(nsGenericHTMLElement* newBody, ErrorResult& rv)
|
||||||
{
|
{
|
||||||
Element* root = GetRootElement();
|
nsCOMPtr<Element> root = GetRootElement();
|
||||||
|
|
||||||
// The body element must be either a body tag or a frameset tag. And we must
|
// The body element must be either a body tag or a frameset tag. And we must
|
||||||
// have a html root tag, otherwise GetBody will not return the newly set
|
// have a html root tag, otherwise GetBody will not return the newly set
|
||||||
|
Loading…
Reference in New Issue
Block a user