In stead of throwing an exception when the user asks for the owner rule of style sheet we return null.

git-svn-id: svn://10.0.0.236/trunk@69568 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%netscape.com
2000-05-13 18:10:24 +00:00
parent 760f4310e8
commit f37851bcbd
3 changed files with 21 additions and 3 deletions

View File

@@ -2331,7 +2331,13 @@ CSSStyleSheetImpl::GetMedia(nsIDOMMediaList** aMedia)
NS_IMETHODIMP
CSSStyleSheetImpl::GetOwnerRule(nsIDOMCSSRule** aOwnerRule)
{
return NS_ERROR_NOT_IMPLEMENTED;
NS_ENSURE_ARG_POINTER(aOwnerRule);
*aOwnerRule = nsnull;
// TBI: This should return the owner rule once the style system knows about
// owning rules...
return NS_OK;
}
NS_IMETHODIMP

View File

@@ -2331,7 +2331,13 @@ CSSStyleSheetImpl::GetMedia(nsIDOMMediaList** aMedia)
NS_IMETHODIMP
CSSStyleSheetImpl::GetOwnerRule(nsIDOMCSSRule** aOwnerRule)
{
return NS_ERROR_NOT_IMPLEMENTED;
NS_ENSURE_ARG_POINTER(aOwnerRule);
*aOwnerRule = nsnull;
// TBI: This should return the owner rule once the style system knows about
// owning rules...
return NS_OK;
}
NS_IMETHODIMP

View File

@@ -2331,7 +2331,13 @@ CSSStyleSheetImpl::GetMedia(nsIDOMMediaList** aMedia)
NS_IMETHODIMP
CSSStyleSheetImpl::GetOwnerRule(nsIDOMCSSRule** aOwnerRule)
{
return NS_ERROR_NOT_IMPLEMENTED;
NS_ENSURE_ARG_POINTER(aOwnerRule);
*aOwnerRule = nsnull;
// TBI: This should return the owner rule once the style system knows about
// owning rules...
return NS_OK;
}
NS_IMETHODIMP