Bug 1625991 - Use GetComposedDoc() instead of GetUncomposedDoc() in XULTreeElement::GetTreeBodyFrame. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D68820

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Tim Nguyen 2020-03-30 15:58:32 +00:00
parent 0a247256b7
commit 052be11866

View File

@ -83,7 +83,7 @@ nsTreeBodyFrame* XULTreeElement::GetTreeBodyFrame(FlushType aFlushType) {
MOZ_ASSERT(aFlushType == FlushType::Frames ||
aFlushType == FlushType::Layout || aFlushType == FlushType::None);
nsCOMPtr<nsIContent> kungFuDeathGrip = this; // keep a reference
RefPtr<Document> doc = GetUncomposedDoc();
RefPtr<Document> doc = GetComposedDoc();
// Make sure our frames are up to date, and layout as needed. We
// have to do this before checking for our cached mTreeBody, since