зеркало из https://github.com/mozilla/gecko-dev.git
Bug 697210 - Part a: Make nsIDocument::GetDefaultNamespaceID non-virtual and have it return mDefaultElementType; r=bz
This commit is contained in:
Родитель
ea43ea6030
Коммит
0acf27c125
|
@ -125,9 +125,9 @@ class Element;
|
|||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
||||
#define NS_IDOCUMENT_IID \
|
||||
{ 0x448c396a, 0x013c, 0x47b8, \
|
||||
{ 0x95, 0xf4, 0x56, 0x68, 0x0f, 0x5f, 0x12, 0xf8 } }
|
||||
#define NS_IDOCUMENT_IID \
|
||||
{ 0x5853e8d4, 0xb9c8, 0x462f, \
|
||||
{ 0x8a, 0x22, 0x7e, 0xa8, 0x88, 0xc0, 0x0f, 0x34 } }
|
||||
|
||||
// Flag for AddStyleSheet().
|
||||
#define NS_STYLESHEET_FROM_CATALOG (1 << 0)
|
||||
|
@ -938,7 +938,10 @@ public:
|
|||
* Returns the default namespace ID used for elements created in this
|
||||
* document.
|
||||
*/
|
||||
virtual PRInt32 GetDefaultNamespaceID() const = 0;
|
||||
PRInt32 GetDefaultNamespaceID() const
|
||||
{
|
||||
return mDefaultElementType;
|
||||
}
|
||||
|
||||
void DeleteAllProperties();
|
||||
void DeleteAllPropertiesFor(nsINode* aNode);
|
||||
|
@ -1800,6 +1803,8 @@ protected:
|
|||
|
||||
nsCOMPtr<nsIStructuredCloneContainer> mStateObjectContainer;
|
||||
nsCOMPtr<nsIVariant> mStateObjectCached;
|
||||
|
||||
PRUint8 mDefaultElementType;
|
||||
};
|
||||
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDocument, NS_IDOCUMENT_IID)
|
||||
|
|
|
@ -1010,11 +1010,6 @@ protected:
|
|||
// Return whether all the presshells for this document are safe to flush
|
||||
bool IsSafeToFlush() const;
|
||||
|
||||
virtual PRInt32 GetDefaultNamespaceID() const
|
||||
{
|
||||
return kNameSpaceID_None;
|
||||
}
|
||||
|
||||
void DispatchPageTransition(nsIDOMEventTarget* aDispatchTarget,
|
||||
const nsAString& aType,
|
||||
bool aPersisted);
|
||||
|
@ -1131,8 +1126,6 @@ protected:
|
|||
|
||||
PRUint8 mXMLDeclarationBits;
|
||||
|
||||
PRUint8 mDefaultElementType;
|
||||
|
||||
nsInterfaceHashtable<nsVoidPtrHashKey, nsPIBoxObject> *mBoxObjectTable;
|
||||
|
||||
// The channel that got passed to StartDocumentLoad(), if any
|
||||
|
|
|
@ -237,11 +237,6 @@ protected:
|
|||
|
||||
void *GenerateParserKey(void);
|
||||
|
||||
virtual PRInt32 GetDefaultNamespaceID() const
|
||||
{
|
||||
return kNameSpaceID_XHTML;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIDOMHTMLCollection> mImages;
|
||||
nsCOMPtr<nsIDOMHTMLCollection> mApplets;
|
||||
nsCOMPtr<nsIDOMHTMLCollection> mEmbeds;
|
||||
|
|
|
@ -260,11 +260,6 @@ protected:
|
|||
|
||||
already_AddRefed<nsPIWindowRoot> GetWindowRoot();
|
||||
|
||||
PRInt32 GetDefaultNamespaceID() const
|
||||
{
|
||||
return kNameSpaceID_XUL;
|
||||
}
|
||||
|
||||
static NS_HIDDEN_(int) DirectionChanged(const char* aPrefName, void* aData);
|
||||
|
||||
// pseudo constants
|
||||
|
|
Загрузка…
Ссылка в новой задаче