Removing the CLASS, ID, and STYLE-specific methods. They are now in

nsIStyledContent (from which nsIHTMLContent now derives).
This commit is contained in:
hyatt%netscape.com 1999-02-27 01:32:49 +00:00
Родитель ac66dd63ce
Коммит 927493e52a
2 изменённых файлов: 4 добавлений и 36 удалений

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

@ -18,7 +18,7 @@
#ifndef nsIHTMLContent_h___
#define nsIHTMLContent_h___
#include "nsIContent.h"
#include "nsIStyledContent.h"
#include "nsHTMLValue.h"
class nsString;
class nsIFrame;
@ -39,7 +39,7 @@ typedef void (*nsMapAttributesFunc)(nsIHTMLAttributes* aAttributes,
nsIPresContext* aPresContext);
// Abstract interface for all html content
class nsIHTMLContent : public nsIContent {
class nsIHTMLContent : public nsIStyledContent {
public:
static const nsIID& IID() { static nsIID iid = NS_IHTMLCONTENT_IID; return iid; }
@ -57,13 +57,6 @@ public:
nsHTMLValue& aValue) const = 0;
NS_IMETHOD GetAttributeMappingFunction(nsMapAttributesFunc& aMapFunc) const = 0;
NS_IMETHOD GetID(nsIAtom*& aResult) const = 0;
NS_IMETHOD GetClasses(nsVoidArray& aArray) const = 0;
NS_IMETHOD HasClass(nsIAtom* aClass) const = 0;
NS_IMETHOD GetContentStyleRule(nsIStyleRule*& aResult) = 0;
NS_IMETHOD GetInlineStyleRule(nsIStyleRule*& aResult) = 0;
NS_IMETHOD AttributeToString(nsIAtom* aAttribute,
const nsHTMLValue& aValue,
nsString& aResult) const = 0;
@ -99,15 +92,6 @@ public:
NS_IMETHOD ToHTMLString(nsString& aResult) const = 0;
NS_IMETHOD ToHTML(FILE* out) const = 0;
/** NRA ***
* Get a hint that tells the style system what to do when
* an attribute on this node changes.
*/
NS_IMETHOD GetStyleHintForAttributeChange(
const nsIAtom* aAttribute,
PRInt32 *aHint) const = 0;
};
#endif /* nsIHTMLContent_h___ */

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

@ -18,7 +18,7 @@
#ifndef nsIHTMLContent_h___
#define nsIHTMLContent_h___
#include "nsIContent.h"
#include "nsIStyledContent.h"
#include "nsHTMLValue.h"
class nsString;
class nsIFrame;
@ -39,7 +39,7 @@ typedef void (*nsMapAttributesFunc)(nsIHTMLAttributes* aAttributes,
nsIPresContext* aPresContext);
// Abstract interface for all html content
class nsIHTMLContent : public nsIContent {
class nsIHTMLContent : public nsIStyledContent {
public:
static const nsIID& IID() { static nsIID iid = NS_IHTMLCONTENT_IID; return iid; }
@ -57,13 +57,6 @@ public:
nsHTMLValue& aValue) const = 0;
NS_IMETHOD GetAttributeMappingFunction(nsMapAttributesFunc& aMapFunc) const = 0;
NS_IMETHOD GetID(nsIAtom*& aResult) const = 0;
NS_IMETHOD GetClasses(nsVoidArray& aArray) const = 0;
NS_IMETHOD HasClass(nsIAtom* aClass) const = 0;
NS_IMETHOD GetContentStyleRule(nsIStyleRule*& aResult) = 0;
NS_IMETHOD GetInlineStyleRule(nsIStyleRule*& aResult) = 0;
NS_IMETHOD AttributeToString(nsIAtom* aAttribute,
const nsHTMLValue& aValue,
nsString& aResult) const = 0;
@ -99,15 +92,6 @@ public:
NS_IMETHOD ToHTMLString(nsString& aResult) const = 0;
NS_IMETHOD ToHTML(FILE* out) const = 0;
/** NRA ***
* Get a hint that tells the style system what to do when
* an attribute on this node changes.
*/
NS_IMETHOD GetStyleHintForAttributeChange(
const nsIAtom* aAttribute,
PRInt32 *aHint) const = 0;
};
#endif /* nsIHTMLContent_h___ */