From 742155bd913783ad84f0108fa8b2b284ed9d5326 Mon Sep 17 00:00:00 2001 From: Mats Palmgren Date: Wed, 1 Mar 2017 18:03:14 +0100 Subject: [PATCH] Bug 1340771 part 4 - Mark AutoWeakFrame as MOZ_NONHEAP_CLASS and WeakFrame as MOZ_HEAP_CLASS. r=tn MozReview-Commit-ID: 8yGBKyx3TDW --- layout/generic/nsIFrame.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/generic/nsIFrame.h b/layout/generic/nsIFrame.h index 5213582bbc17..da82b5c96f33 100644 --- a/layout/generic/nsIFrame.h +++ b/layout/generic/nsIFrame.h @@ -3829,7 +3829,7 @@ public: * @note The usage of this class should be kept to a minimum. */ class WeakFrame; -class AutoWeakFrame +class MOZ_NONHEAP_CLASS AutoWeakFrame { public: explicit AutoWeakFrame() @@ -3905,7 +3905,7 @@ private: /** * @see AutoWeakFrame */ -class WeakFrame +class MOZ_HEAP_CLASS WeakFrame { public: WeakFrame() : mFrame(nullptr) {}