зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
78a69a5578
Коммит
09b0fe59f0
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче