Backed out changeset ecbeb9354c24 (bug 1383386) for mass-asserting at gfx/layers/ipc/CompositorBridgeChild.cpp:264. r=backout on a CLOSED TREE

This commit is contained in:
Sebastian Hengst 2017-08-02 23:08:43 +02:00
parent 6804701dfc
commit c9ff8ee666

View File

@ -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) {