This commit is contained in:
peterl%netscape.com 1998-12-02 00:38:14 +00:00
Родитель 36202d8d46
Коммит b724dddfbc
3 изменённых файлов: 12 добавлений и 12 удалений

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

@ -223,7 +223,7 @@ public:
NS_IMETHOD GetTitle(nsString& aTitle) const;
NS_IMETHOD GetType(nsString& aType) const;
NS_IMETHOD GetMediumCount(PRInt32& aCount) const;
NS_IMETHOD GetMediumAt(PRInt32 aIndex, nsString& aMedium) const;
NS_IMETHOD GetMediumAt(PRInt32 aIndex, nsIAtom*& aMedium) const;
NS_IMETHOD GetEnabled(PRBool& aEnabled) const;
NS_IMETHOD SetEnabled(PRBool aEnabled);
@ -577,7 +577,7 @@ PRInt32 HTMLStyleSheetImpl::RulesMatching(nsIPresContext* aPresContext,
// just get the one and only style rule from the content
nsIStyleRule* rule;
htmlContent->GetStyleRule(rule);
htmlContent->GetContentStyleRule(rule);
if (nsnull != rule) {
aResults->AppendElement(rule);
NS_RELEASE(rule);
@ -635,9 +635,9 @@ HTMLStyleSheetImpl::GetMediumCount(PRInt32& aCount) const
}
NS_IMETHODIMP
HTMLStyleSheetImpl::GetMediumAt(PRInt32 aIndex, nsString& aMedium) const
HTMLStyleSheetImpl::GetMediumAt(PRInt32 aIndex, nsIAtom*& aMedium) const
{
aMedium.Truncate();
aMedium = nsnull;
return NS_ERROR_INVALID_ARG;
}

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

@ -223,7 +223,7 @@ public:
NS_IMETHOD GetTitle(nsString& aTitle) const;
NS_IMETHOD GetType(nsString& aType) const;
NS_IMETHOD GetMediumCount(PRInt32& aCount) const;
NS_IMETHOD GetMediumAt(PRInt32 aIndex, nsString& aMedium) const;
NS_IMETHOD GetMediumAt(PRInt32 aIndex, nsIAtom*& aMedium) const;
NS_IMETHOD GetEnabled(PRBool& aEnabled) const;
NS_IMETHOD SetEnabled(PRBool aEnabled);
@ -577,7 +577,7 @@ PRInt32 HTMLStyleSheetImpl::RulesMatching(nsIPresContext* aPresContext,
// just get the one and only style rule from the content
nsIStyleRule* rule;
htmlContent->GetStyleRule(rule);
htmlContent->GetContentStyleRule(rule);
if (nsnull != rule) {
aResults->AppendElement(rule);
NS_RELEASE(rule);
@ -635,9 +635,9 @@ HTMLStyleSheetImpl::GetMediumCount(PRInt32& aCount) const
}
NS_IMETHODIMP
HTMLStyleSheetImpl::GetMediumAt(PRInt32 aIndex, nsString& aMedium) const
HTMLStyleSheetImpl::GetMediumAt(PRInt32 aIndex, nsIAtom*& aMedium) const
{
aMedium.Truncate();
aMedium = nsnull;
return NS_ERROR_INVALID_ARG;
}

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

@ -223,7 +223,7 @@ public:
NS_IMETHOD GetTitle(nsString& aTitle) const;
NS_IMETHOD GetType(nsString& aType) const;
NS_IMETHOD GetMediumCount(PRInt32& aCount) const;
NS_IMETHOD GetMediumAt(PRInt32 aIndex, nsString& aMedium) const;
NS_IMETHOD GetMediumAt(PRInt32 aIndex, nsIAtom*& aMedium) const;
NS_IMETHOD GetEnabled(PRBool& aEnabled) const;
NS_IMETHOD SetEnabled(PRBool aEnabled);
@ -577,7 +577,7 @@ PRInt32 HTMLStyleSheetImpl::RulesMatching(nsIPresContext* aPresContext,
// just get the one and only style rule from the content
nsIStyleRule* rule;
htmlContent->GetStyleRule(rule);
htmlContent->GetContentStyleRule(rule);
if (nsnull != rule) {
aResults->AppendElement(rule);
NS_RELEASE(rule);
@ -635,9 +635,9 @@ HTMLStyleSheetImpl::GetMediumCount(PRInt32& aCount) const
}
NS_IMETHODIMP
HTMLStyleSheetImpl::GetMediumAt(PRInt32 aIndex, nsString& aMedium) const
HTMLStyleSheetImpl::GetMediumAt(PRInt32 aIndex, nsIAtom*& aMedium) const
{
aMedium.Truncate();
aMedium = nsnull;
return NS_ERROR_INVALID_ARG;
}