commented on sheet/rule ordering

This commit is contained in:
peterl%netscape.com 1998-08-27 00:46:34 +00:00
parent 7924ed75b2
commit 0b78c480f4
5 changed files with 8 additions and 3 deletions

View File

@ -125,6 +125,7 @@ public:
/**
* Get the style sheets owned by this document.
* Style sheets are ordered, most significant first.
*/
virtual PRInt32 GetNumberOfStyleSheets() = 0;
virtual nsIStyleSheet* GetStyleSheetAt(PRInt32 aIndex) = 0;

View File

@ -36,7 +36,8 @@ class nsIStyleSheet : public nsISupports {
public:
virtual nsIURL* GetURL(void) = 0;
// populate void array with nsIStyleRule*
// populate supports array with nsIStyleRule*
// rules are ordered, those with higher precedence come last
virtual PRInt32 RulesMatching(nsIPresContext* aPresContext,
nsIContent* aContent,
nsIFrame* aParentFrame,

View File

@ -125,6 +125,7 @@ public:
/**
* Get the style sheets owned by this document.
* Style sheets are ordered, most significant first.
*/
virtual PRInt32 GetNumberOfStyleSheets() = 0;
virtual nsIStyleSheet* GetStyleSheetAt(PRInt32 aIndex) = 0;

View File

@ -36,7 +36,8 @@ class nsIStyleSheet : public nsISupports {
public:
virtual nsIURL* GetURL(void) = 0;
// populate void array with nsIStyleRule*
// populate supports array with nsIStyleRule*
// rules are ordered, those with higher precedence come last
virtual PRInt32 RulesMatching(nsIPresContext* aPresContext,
nsIContent* aContent,
nsIFrame* aParentFrame,

View File

@ -36,7 +36,8 @@ class nsIStyleSheet : public nsISupports {
public:
virtual nsIURL* GetURL(void) = 0;
// populate void array with nsIStyleRule*
// populate supports array with nsIStyleRule*
// rules are ordered, those with higher precedence come last
virtual PRInt32 RulesMatching(nsIPresContext* aPresContext,
nsIContent* aContent,
nsIFrame* aParentFrame,