diff --git a/mozilla/content/html/style/src/nsCSSStyleSheet.cpp b/mozilla/content/html/style/src/nsCSSStyleSheet.cpp
index 27edb71da85..3676fb2386d 100644
--- a/mozilla/content/html/style/src/nsCSSStyleSheet.cpp
+++ b/mozilla/content/html/style/src/nsCSSStyleSheet.cpp
@@ -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
diff --git a/mozilla/layout/html/style/src/nsCSSStyleSheet.cpp b/mozilla/layout/html/style/src/nsCSSStyleSheet.cpp
index 27edb71da85..3676fb2386d 100644
--- a/mozilla/layout/html/style/src/nsCSSStyleSheet.cpp
+++ b/mozilla/layout/html/style/src/nsCSSStyleSheet.cpp
@@ -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
diff --git a/mozilla/layout/style/nsCSSStyleSheet.cpp b/mozilla/layout/style/nsCSSStyleSheet.cpp
index 27edb71da85..3676fb2386d 100644
--- a/mozilla/layout/style/nsCSSStyleSheet.cpp
+++ b/mozilla/layout/style/nsCSSStyleSheet.cpp
@@ -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