layout/ipc/RenderFrameChild.cpp
author Mike Hommey <mh+mozilla@glandium.org>
Tue, 07 Jun 2016 08:25:10 +0900
changeset 301950 a2e4369f86dcf620b453de3da6525a87ea1808fc
parent 252629 91d6e262b662a0b4e47358665e222d3927337af9
child 388790 905239391e05483e8fb221378dd2092c5a0df8b7
permissions -rw-r--r--
Bug 1278415 - Make the buildconfig module use MozbuildObject.from_environment. r=gps The buildconfig module predates MozbuildObject.from_environment, and it's about time to start factoring things out such that we only have one way to get config.status data. This is step 1: making the buildconfig module use MozbuildObject.from_environment. Eventually, we'll want to remove the buildconfig module uses everywhere.

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 * vim: sw=2 ts=8 et :
 */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "RenderFrameChild.h"
#include "mozilla/layers/LayerTransactionChild.h"

using mozilla::layers::PLayerTransactionChild;
using mozilla::layers::LayerTransactionChild;

namespace mozilla {
namespace layout {

void
RenderFrameChild::ActorDestroy(ActorDestroyReason why)
{
  mWasDestroyed = true;
}

void
RenderFrameChild::Destroy()
{
  if (mWasDestroyed) {
    return;
  }

  Send__delete__(this);
  // WARNING: |this| is dead, hands off
}

} // namespace layout
} // namespace mozilla