Missed one nsresult->bool fix.
authorJoe Drew <joe@drew.ca>
Wed, 28 Oct 2009 17:29:12 -0400
changeset 36023 4052b7e616de66bfaa7f37ff3f0f892fbfe2c654
parent 36022 873798f6dcdc92f8a5babda59e4825459256ab5d
child 36024 f009c0f2c988aff6b3a499c38b3efe61c3ce4ea8
push idunknown
push userunknown
push dateunknown
milestone1.9.3a1pre
Missed one nsresult->bool fix.
content/canvas/src/DocumentRendererChild.cpp
--- a/content/canvas/src/DocumentRendererChild.cpp
+++ b/content/canvas/src/DocumentRendererChild.cpp
@@ -107,17 +107,17 @@ DocumentRendererChild::RenderDocument(ns
     nsCOMPtr<nsPIDOMWindow> win = do_QueryInterface(window);
     if (win) {
         nsIDocShell* docshell = win->GetDocShell();
         if (docshell) {
             docshell->GetPresContext(getter_AddRefs(presContext));
         }
     }
     if (!presContext)
-        return NS_ERROR_FAILURE;
+        return false;
 
     nscolor bgColor;
     nsCOMPtr<nsICSSParser> parser = do_CreateInstance("@mozilla.org/content/css-parser;1");
     nsresult rv = parser->ParseColorString(PromiseFlatString(aBGColor),
                                            nsnull, 0, &bgColor);
     if (NS_FAILED(rv))
         return false;