RenderFrameChild.cpp 801 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2. * vim: sw=2 ts=8 et :
  3. */
  4. /* This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  7. #include "RenderFrameChild.h"
  8. #include "mozilla/layers/LayerTransactionChild.h"
  9. using mozilla::layers::PLayerTransactionChild;
  10. using mozilla::layers::LayerTransactionChild;
  11. namespace mozilla {
  12. namespace layout {
  13. void
  14. RenderFrameChild::ActorDestroy(ActorDestroyReason why)
  15. {
  16. mWasDestroyed = true;
  17. }
  18. void
  19. RenderFrameChild::Destroy()
  20. {
  21. if (mWasDestroyed) {
  22. return;
  23. }
  24. Send__delete__(this);
  25. // WARNING: |this| is dead, hands off
  26. }
  27. } // namespace layout
  28. } // namespace mozilla