Bug 704687 - Mark final classes as MOZ_FINAL, now that nsDerivedSafe no longer exists again. r=dbaron

--HG--
extra : rebase_source : f6a25c06275e4fbb2e69462118f242d380bdce03
This commit is contained in:
Jeff Walden 2011-12-19 13:48:15 -05:00
Родитель 58d5e1fb1b
Коммит 0125af07b4
6 изменённых файлов: 23 добавлений и 16 удалений

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

@ -38,6 +38,8 @@
#ifndef nsFrameSelection_h___
#define nsFrameSelection_h___
#include "mozilla/Attributes.h"
#include "nsIFrame.h"
#include "nsIContent.h"
#include "nsISelectionController.h"
@ -210,7 +212,7 @@ class nsIScrollableFrame;
* or they may cause other objects to be deleted.
*/
class nsFrameSelection : public nsISupports {
class nsFrameSelection MOZ_FINAL : public nsISupports {
public:
enum HINT { HINTLEFT = 0, HINTRIGHT = 1}; //end of this line or beginning of next
/*interfaces for addref and release and queryinterface*/

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

@ -40,7 +40,9 @@
#ifndef mozilla_css_NameSpaceRule_h__
#define mozilla_css_NameSpaceRule_h__
#include "mozilla/Attributes.h"
#include "mozilla/css/Rule.h"
#include "nsIDOMCSSRule.h"
class nsIAtom;
@ -53,8 +55,8 @@ class nsIAtom;
namespace mozilla {
namespace css {
class NameSpaceRule : public Rule,
public nsIDOMCSSRule
class NameSpaceRule MOZ_FINAL : public Rule,
public nsIDOMCSSRule
{
public:
NameSpaceRule(nsIAtom* aPrefix, const nsString& aURLSpec);

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

@ -47,8 +47,9 @@
#include "mozilla/Attributes.h"
//#include <stdio.h>
#include "mozilla/Attributes.h"
#include "mozilla/css/Rule.h"
#include "nsString.h"
#include "nsCOMPtr.h"
#include "nsCSSPseudoElements.h"
@ -316,7 +317,7 @@ protected:
friend class StyleRule;
};
class StyleRule : public Rule
class StyleRule MOZ_FINAL : public Rule
{
public:
StyleRule(nsCSSSelectorList* aSelector,

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

@ -38,6 +38,8 @@
/* rules in a CSS stylesheet other than style rules (e.g., @import rules) */
#include "mozilla/Attributes.h"
#include "nsCSSRules.h"
#include "nsCSSValue.h"
#include "mozilla/css/ImportRule.h"
@ -120,7 +122,7 @@ Rule::GetParentStyleSheet(nsIDOMCSSStyleSheet** aSheet)
// Style Rule List for group rules
//
class GroupRuleRuleList : public nsICSSRuleList
class GroupRuleRuleList MOZ_FINAL : public nsICSSRuleList
{
public:
GroupRuleRuleList(GroupRule *aGroupRule);

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

@ -72,8 +72,8 @@ class nsMediaList;
namespace mozilla {
namespace css {
class MediaRule : public GroupRule,
public nsIDOMCSSMediaRule
class MediaRule MOZ_FINAL : public GroupRule,
public nsIDOMCSSMediaRule
{
public:
MediaRule();
@ -115,8 +115,8 @@ protected:
nsRefPtr<nsMediaList> mMedia;
};
class DocumentRule : public GroupRule,
public nsIDOMCSSMozDocumentRule
class DocumentRule MOZ_FINAL : public GroupRule,
public nsIDOMCSSMozDocumentRule
{
public:
DocumentRule();
@ -315,7 +315,7 @@ private:
class nsCSSKeyframeRule;
class nsCSSKeyframeStyleDeclaration : public nsDOMCSSDeclaration
class nsCSSKeyframeStyleDeclaration MOZ_FINAL : public nsDOMCSSDeclaration
{
public:
nsCSSKeyframeStyleDeclaration(nsCSSKeyframeRule *aRule);
@ -390,8 +390,8 @@ private:
nsRefPtr<nsCSSKeyframeStyleDeclaration> mDOMDeclaration;
};
class nsCSSKeyframesRule : public mozilla::css::GroupRule,
public nsIDOMMozCSSKeyframesRule
class nsCSSKeyframesRule MOZ_FINAL : public mozilla::css::GroupRule,
public nsIDOMMozCSSKeyframesRule
{
public:
nsCSSKeyframesRule(const nsSubstring& aName)

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

@ -134,9 +134,9 @@ struct ChildSheetListBuilder;
{ 0x84, 0x67, 0x80, 0x3f, 0xb3, 0x2a, 0xf2, 0x0a } }
class nsCSSStyleSheet : public nsIStyleSheet,
public nsIDOMCSSStyleSheet,
public nsICSSLoaderObserver
class nsCSSStyleSheet MOZ_FINAL : public nsIStyleSheet,
public nsIDOMCSSStyleSheet,
public nsICSSLoaderObserver
{
public:
nsCSSStyleSheet();