From 09b0fe59f0d2dd232be5159f712c444cf0ffe95b Mon Sep 17 00:00:00 2001 From: Daniel Holbert Date: Tue, 18 Jul 2017 22:36:24 -0700 Subject: [PATCH] Bug 1284888 part 1: Annotate TextOverflow as a heap-only final class, to reflect reality. r=jfkthame MozReview-Commit-ID: 9e03pevzCOc --HG-- extra : rebase_source : 1bd889e9142390e746d1bbed3092c6108049c3f5 --- layout/generic/TextOverflow.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/layout/generic/TextOverflow.h b/layout/generic/TextOverflow.h index 7987c2f91bd2..87f6ac3a5c34 100644 --- a/layout/generic/TextOverflow.h +++ b/layout/generic/TextOverflow.h @@ -9,6 +9,7 @@ #include "nsDisplayList.h" #include "nsTHashtable.h" +#include "mozilla/Attributes.h" #include "mozilla/Likely.h" #include "mozilla/WritingModes.h" #include @@ -25,7 +26,7 @@ namespace css { * 1. allocate an object using WillProcessLines * 2. then call ProcessLine for each line you are building display lists for */ -class TextOverflow { +class MOZ_HEAP_CLASS TextOverflow final { public: /** * Allocate an object for text-overflow processing. @@ -55,9 +56,9 @@ class TextOverflow { */ static bool CanHaveTextOverflow(nsIFrame* aBlockFrame); - typedef nsTHashtable > FrameHashtable; + typedef nsTHashtable> FrameHashtable; - protected: + private: TextOverflow(nsDisplayListBuilder* aBuilder, nsIFrame* aBlockFrame);