diff --git a/layout/base/nsLayoutUtils.cpp b/layout/base/nsLayoutUtils.cpp index 8d16e75f803f..e1b2eaadcf63 100644 --- a/layout/base/nsLayoutUtils.cpp +++ b/layout/base/nsLayoutUtils.cpp @@ -9294,8 +9294,8 @@ static void UpdateDisplayPortMarginsForPendingMetrics(FrameMetrics& aMetrics) { /* static */ void nsLayoutUtils::UpdateDisplayPortMarginsFromPendingMessages() { - if (mozilla::layers::CompositorBridgeChild::Get() && - mozilla::layers::CompositorBridgeChild::Get()->GetIPCChannel()) { + if (mozilla::dom::ContentChild::GetSingleton() && + mozilla::dom::ContentChild::GetSingleton()->GetIPCChannel()) { CompositorBridgeChild::Get()->GetIPCChannel()->PeekMessages( [](const IPC::Message& aMsg) -> bool { if (aMsg.type() == mozilla::layers::PAPZ::Msg_RequestContentRepaint__ID) {