mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 05:10:49 +00:00
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:
parent
0a247256b7
commit
052be11866
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user