This commit is contained in:
peterl%netscape.com 1999-06-15 06:19:57 +00:00
Родитель eb378fd080
Коммит d4d5bc6e95
3 изменённых файлов: 12 добавлений и 9 удалений

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

@ -403,7 +403,7 @@ public:
// nsICSSMediaRule methods
NS_IMETHOD SetMedia(nsISupportsArray* aMedia);
NS_IMETHOD HasMedium(nsIAtom* aMedium) const;
NS_IMETHOD UseForMedium(nsIAtom* aMedium) const;
NS_IMETHOD AppendStyleRule(nsICSSRule* aRule);
@ -589,7 +589,7 @@ CSSMediaRuleImpl::SetMedia(nsISupportsArray* aMedia)
}
NS_IMETHODIMP
CSSMediaRuleImpl::HasMedium(nsIAtom* aMedium) const
CSSMediaRuleImpl::UseForMedium(nsIAtom* aMedium) const
{
if (mMedia) {
if (-1 != mMedia->IndexOf(aMedium)) {
@ -598,8 +598,9 @@ CSSMediaRuleImpl::HasMedium(nsIAtom* aMedium) const
if (-1 != mMedia->IndexOf(nsLayoutAtoms::all)) {
return NS_OK;
}
return NS_COMFALSE;
}
return NS_COMFALSE;
return NS_OK;
}
NS_IMETHODIMP

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

@ -403,7 +403,7 @@ public:
// nsICSSMediaRule methods
NS_IMETHOD SetMedia(nsISupportsArray* aMedia);
NS_IMETHOD HasMedium(nsIAtom* aMedium) const;
NS_IMETHOD UseForMedium(nsIAtom* aMedium) const;
NS_IMETHOD AppendStyleRule(nsICSSRule* aRule);
@ -589,7 +589,7 @@ CSSMediaRuleImpl::SetMedia(nsISupportsArray* aMedia)
}
NS_IMETHODIMP
CSSMediaRuleImpl::HasMedium(nsIAtom* aMedium) const
CSSMediaRuleImpl::UseForMedium(nsIAtom* aMedium) const
{
if (mMedia) {
if (-1 != mMedia->IndexOf(aMedium)) {
@ -598,8 +598,9 @@ CSSMediaRuleImpl::HasMedium(nsIAtom* aMedium) const
if (-1 != mMedia->IndexOf(nsLayoutAtoms::all)) {
return NS_OK;
}
return NS_COMFALSE;
}
return NS_COMFALSE;
return NS_OK;
}
NS_IMETHODIMP

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

@ -403,7 +403,7 @@ public:
// nsICSSMediaRule methods
NS_IMETHOD SetMedia(nsISupportsArray* aMedia);
NS_IMETHOD HasMedium(nsIAtom* aMedium) const;
NS_IMETHOD UseForMedium(nsIAtom* aMedium) const;
NS_IMETHOD AppendStyleRule(nsICSSRule* aRule);
@ -589,7 +589,7 @@ CSSMediaRuleImpl::SetMedia(nsISupportsArray* aMedia)
}
NS_IMETHODIMP
CSSMediaRuleImpl::HasMedium(nsIAtom* aMedium) const
CSSMediaRuleImpl::UseForMedium(nsIAtom* aMedium) const
{
if (mMedia) {
if (-1 != mMedia->IndexOf(aMedium)) {
@ -598,8 +598,9 @@ CSSMediaRuleImpl::HasMedium(nsIAtom* aMedium) const
if (-1 != mMedia->IndexOf(nsLayoutAtoms::all)) {
return NS_OK;
}
return NS_COMFALSE;
}
return NS_COMFALSE;
return NS_OK;
}
NS_IMETHODIMP