diff --git a/layout/base/PresShell.cpp b/layout/base/PresShell.cpp index d015d18d850e..9313ddf65239 100644 --- a/layout/base/PresShell.cpp +++ b/layout/base/PresShell.cpp @@ -6717,7 +6717,7 @@ nsresult PresShell::EventHandler::HandleEventUsingCoordinates( eventTargetData.mFrame->GetContent(), capturingContent))) { // A check was already done above to ensure that capturingContent is // in this presshell. - NS_ASSERTION(capturingContent->GetComposedDoc() == GetDocument(), + NS_ASSERTION(capturingContent->OwnerDoc() == GetDocument(), "Unexpected document"); nsIFrame* capturingFrame = capturingContent->GetPrimaryFrame(); if (capturingFrame) { @@ -7466,7 +7466,7 @@ PresShell::EventHandler::ComputeRootFrameToHandleEventWithCapturingContent( // A check was already done above to ensure that aCapturingContent is // in this presshell. - NS_ASSERTION(aCapturingContent->GetComposedDoc() == GetDocument(), + NS_ASSERTION(aCapturingContent->OwnerDoc() == GetDocument(), "Unexpected document"); nsIFrame* captureFrame = aCapturingContent->GetPrimaryFrame(); if (!captureFrame) {