зеркало из https://github.com/mozilla/gecko-dev.git
Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (more layout parts); r=roc
This commit is contained in:
Родитель
cad1876a09
Коммит
92998ad05e
|
@ -499,7 +499,7 @@ static FrameTextRunCache *gTextRuns = nsnull;
|
|||
/*
|
||||
* Cache textruns and expire them after 3*10 seconds of no use.
|
||||
*/
|
||||
class FrameTextRunCache : public nsExpirationTracker<gfxTextRun,3> {
|
||||
class FrameTextRunCache MOZ_FINAL : public nsExpirationTracker<gfxTextRun,3> {
|
||||
public:
|
||||
enum { TIMEOUT_SECONDS = 10 };
|
||||
FrameTextRunCache()
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
#include "mozilla/Services.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "mozilla/LookAndFeel.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
using namespace mozilla;
|
||||
|
||||
|
@ -211,7 +212,7 @@ nsMenuFrame::InitMenuParent(nsIFrame* aParent)
|
|||
}
|
||||
}
|
||||
|
||||
class nsASyncMenuInitialization : public nsIReflowCallback
|
||||
class nsASyncMenuInitialization MOZ_FINAL : public nsIReflowCallback
|
||||
{
|
||||
public:
|
||||
nsASyncMenuInitialization(nsIFrame* aFrame)
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include "nsBoxLayoutState.h"
|
||||
#include "nsIReflowCallback.h"
|
||||
#include "nsContentUtils.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
//
|
||||
// NS_NewToolbarFrame
|
||||
//
|
||||
|
@ -42,7 +43,7 @@ nsProgressMeterFrame :: ~nsProgressMeterFrame ( )
|
|||
{
|
||||
}
|
||||
|
||||
class nsAsyncProgressMeterInit : public nsIReflowCallback
|
||||
class nsAsyncProgressMeterInit MOZ_FINAL : public nsIReflowCallback
|
||||
{
|
||||
public:
|
||||
nsAsyncProgressMeterInit(nsIFrame* aFrame) : mWeakFrame(aFrame) {}
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include "nsBoxFrame.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "nsLayoutUtils.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
#ifdef IBMBIDI
|
||||
#include "nsBidiUtils.h"
|
||||
|
@ -152,7 +153,7 @@ nsTextBoxFrame::InsertSeparatorBeforeAccessKey()
|
|||
return gInsertSeparatorBeforeAccessKey;
|
||||
}
|
||||
|
||||
class nsAsyncAccesskeyUpdate : public nsIReflowCallback
|
||||
class nsAsyncAccesskeyUpdate MOZ_FINAL : public nsIReflowCallback
|
||||
{
|
||||
public:
|
||||
nsAsyncAccesskeyUpdate(nsIFrame* aFrame) : mWeakFrame(aFrame)
|
||||
|
|
Загрузка…
Ссылка в новой задаче