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