bug 726981 - remove stray instances of PRBool in content. r=mounir
authorJonathan Kew <jfkthame@gmail.com>
Tue, 14 Feb 2012 16:17:19 +0000
changeset 86813 ad860d3e149526f6b9f7c2c402fb965b2e89a6aa
parent 86812 075acd7c9323fde467b39e5015298fe29bc5e0b8
child 86814 c5b29daef5aed8eca15d36dda77d959ee85970d2
push id6049
push userjkew@mozilla.com
push dateTue, 14 Feb 2012 16:20:24 +0000
treeherdermozilla-inbound@c5b29daef5ae [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmounir
bugs726981
milestone13.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 726981 - remove stray instances of PRBool in content. r=mounir
content/base/src/nsFrameMessageManager.cpp
content/html/content/src/nsGenericHTMLElement.cpp
--- a/content/base/src/nsFrameMessageManager.cpp
+++ b/content/base/src/nsFrameMessageManager.cpp
@@ -1087,17 +1087,17 @@ nsFrameMessageManager::NewProcessMessage
   return mm;
 }
 
 nsresult
 NS_NewChildProcessMessageManager(nsISyncMessageSender** aResult)
 {
   NS_ASSERTION(!nsFrameMessageManager::sChildProcessManager,
                "Re-creating sChildProcessManager");
-  PRBool isChrome = IsChromeProcess();
+  bool isChrome = IsChromeProcess();
   nsFrameMessageManager* mm = new nsFrameMessageManager(false,
                                                         isChrome ? SendSyncMessageToSameProcessParent
                                                                  : SendSyncMessageToParentProcess,
                                                         isChrome ? SendAsyncMessageToSameProcessParent
                                                                  : SendAsyncMessageToParentProcess,
                                                         nsnull,
                                                         &nsFrameMessageManager::sChildProcessManager,
                                                         nsnull,
--- a/content/html/content/src/nsGenericHTMLElement.cpp
+++ b/content/html/content/src/nsGenericHTMLElement.cpp
@@ -828,17 +828,17 @@ nsGenericHTMLElement::SetOuterHTML(const
     NS_ENSURE_SUCCESS(rv, rv);
     nsCOMPtr<nsIContent> fragment = do_QueryInterface(df);
     nsContentUtils::ParseFragmentHTML(aOuterHTML,
                                       fragment,
                                       localName,
                                       namespaceID,
                                       OwnerDoc()->GetCompatibilityMode() ==
                                         eCompatibility_NavQuirks,
-                                      PR_TRUE);
+                                      true);
     parent->ReplaceChild(fragment, this, &rv);
     return rv;
   }
 
   nsCOMPtr<nsINode> context;
   if (parent->IsElement()) {
     context = parent;
   } else {
@@ -850,17 +850,17 @@ nsGenericHTMLElement::SetOuterHTML(const
                                                  kNameSpaceID_XHTML,
                                                  nsIDOMNode::ELEMENT_NODE);
     context = NS_NewHTMLBodyElement(info.forget(), FROM_PARSER_FRAGMENT);
   }
 
   nsCOMPtr<nsIDOMDocumentFragment> df;
   nsresult rv = nsContentUtils::CreateContextualFragment(context,
                                                          aOuterHTML,
-                                                         PR_TRUE,
+                                                         true,
                                                          getter_AddRefs(df));
   NS_ENSURE_SUCCESS(rv, rv);
   nsCOMPtr<nsINode> fragment = do_QueryInterface(df);
   parent->ReplaceChild(fragment, this, &rv);
   return rv;
 }
 
 enum nsAdjacentPosition {