mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1029180: Give nsStyleContext a private destructor & MOZ_FINAL, to make it less likely to be freed by anything other than refcounting. r=heycam
This commit is contained in:
parent
6baa25654b
commit
865ca55ea3
@ -36,7 +36,7 @@ class nsPresContext;
|
||||
* collection.
|
||||
*/
|
||||
|
||||
class nsStyleContext
|
||||
class nsStyleContext MOZ_FINAL
|
||||
{
|
||||
public:
|
||||
/**
|
||||
@ -67,7 +67,6 @@ public:
|
||||
nsCSSPseudoElements::Type aPseudoType,
|
||||
nsRuleNode* aRuleNode,
|
||||
bool aSkipParentDisplayBasedStyleFixup);
|
||||
~nsStyleContext();
|
||||
|
||||
void* operator new(size_t sz, nsPresContext* aPresContext) CPP_THROW_NEW;
|
||||
void Destroy();
|
||||
@ -326,6 +325,9 @@ public:
|
||||
#endif
|
||||
|
||||
private:
|
||||
// Private destructor, to discourage deletion outside of Release():
|
||||
~nsStyleContext();
|
||||
|
||||
void AddChild(nsStyleContext* aChild);
|
||||
void RemoveChild(nsStyleContext* aChild);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user