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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user