diff --git a/mozilla/layout/base/public/nsIFrame.h b/mozilla/layout/base/public/nsIFrame.h index c042b2279e4..1e39212b350 100644 --- a/mozilla/layout/base/public/nsIFrame.h +++ b/mozilla/layout/base/public/nsIFrame.h @@ -591,7 +591,7 @@ public: * Accessor functions for geometric parent */ nsresult GetParent(nsIFrame** aParent) const { *aParent = mParent; return NS_OK; } - nsresult SetParent(const nsIFrame* aParent) { mParent = (nsIFrame*)aParent; return NS_OK; } + NS_IMETHOD SetParent(const nsIFrame* aParent) { mParent = (nsIFrame*)aParent; return NS_OK; } /** * Bounding rect of the frame. The values are in twips, and the origin is diff --git a/mozilla/layout/generic/nsIFrame.h b/mozilla/layout/generic/nsIFrame.h index c042b2279e4..1e39212b350 100644 --- a/mozilla/layout/generic/nsIFrame.h +++ b/mozilla/layout/generic/nsIFrame.h @@ -591,7 +591,7 @@ public: * Accessor functions for geometric parent */ nsresult GetParent(nsIFrame** aParent) const { *aParent = mParent; return NS_OK; } - nsresult SetParent(const nsIFrame* aParent) { mParent = (nsIFrame*)aParent; return NS_OK; } + NS_IMETHOD SetParent(const nsIFrame* aParent) { mParent = (nsIFrame*)aParent; return NS_OK; } /** * Bounding rect of the frame. The values are in twips, and the origin is