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
This commit is contained in:
Daniel Holbert 2017-07-18 22:36:24 -07:00
Родитель 78a69a5578
Коммит 09b0fe59f0
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -9,6 +9,7 @@
#include "nsDisplayList.h"
#include "nsTHashtable.h"
#include "mozilla/Attributes.h"
#include "mozilla/Likely.h"
#include "mozilla/WritingModes.h"
#include <algorithm>
@ -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<nsPtrHashKey<nsIFrame> > FrameHashtable;
typedef nsTHashtable<nsPtrHashKey<nsIFrame>> FrameHashtable;
protected:
private:
TextOverflow(nsDisplayListBuilder* aBuilder,
nsIFrame* aBlockFrame);