diff --git a/layout/generic/nsHTMLFrame.cpp b/layout/generic/nsHTMLFrame.cpp
index 067f3dedd58d..dfaa9f0e40bd 100644
--- a/layout/generic/nsHTMLFrame.cpp
+++ b/layout/generic/nsHTMLFrame.cpp
@@ -241,9 +241,11 @@ RootFrame::ListTag(FILE* out) const
{
if (nsnull == mContent) {
fprintf(out, "*Root(-1)@%p", this);
- } else {
+ }
+ else {
return nsFrame::ListTag(out);
}
+ return NS_OK;
}
diff --git a/layout/html/base/src/nsHTMLFrame.cpp b/layout/html/base/src/nsHTMLFrame.cpp
index 067f3dedd58d..dfaa9f0e40bd 100644
--- a/layout/html/base/src/nsHTMLFrame.cpp
+++ b/layout/html/base/src/nsHTMLFrame.cpp
@@ -241,9 +241,11 @@ RootFrame::ListTag(FILE* out) const
{
if (nsnull == mContent) {
fprintf(out, "*Root(-1)@%p", this);
- } else {
+ }
+ else {
return nsFrame::ListTag(out);
}
+ return NS_OK;
}