mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 991285 part 2: Give nsRenderingContext a private destructor and mark it as MOZ_FINAL, for safer refcounting. r=roc
This commit is contained in:
parent
7b4d635087
commit
65f4cf87b1
@ -34,7 +34,7 @@ typedef enum {
|
||||
nsLineStyle_kDotted = 3
|
||||
} nsLineStyle;
|
||||
|
||||
class nsRenderingContext
|
||||
class nsRenderingContext MOZ_FINAL
|
||||
{
|
||||
typedef mozilla::gfx::UserData UserData;
|
||||
typedef mozilla::gfx::UserDataKey UserDataKey;
|
||||
@ -42,7 +42,6 @@ class nsRenderingContext
|
||||
|
||||
public:
|
||||
nsRenderingContext() : mP2A(0.) {}
|
||||
// ~nsRenderingContext() {}
|
||||
|
||||
NS_INLINE_DECL_REFCOUNTING(nsRenderingContext)
|
||||
|
||||
@ -130,7 +129,12 @@ public:
|
||||
return mUserData.Remove(key);
|
||||
}
|
||||
|
||||
protected:
|
||||
private:
|
||||
// Private destructor, to discourage deletion outside of Release():
|
||||
~nsRenderingContext()
|
||||
{
|
||||
}
|
||||
|
||||
int32_t GetMaxChunkLength();
|
||||
|
||||
nsRefPtr<gfxContext> mThebes;
|
||||
|
Loading…
Reference in New Issue
Block a user