Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan

This commit is contained in:
Isaac Aggrey
2012-09-28 01:57:33 -05:00
parent 56e5a1bd47
commit 990e90e88a
230 changed files with 485 additions and 485 deletions

View File

@@ -36,7 +36,7 @@ nsHtml5StringParser::ParseFragment(const nsAString& aSourceBuffer,
bool aQuirks,
bool aPreventScriptExecution)
{
NS_ENSURE_TRUE(aSourceBuffer.Length() <= PR_INT32_MAX,
NS_ENSURE_TRUE(aSourceBuffer.Length() <= INT32_MAX,
NS_ERROR_OUT_OF_MEMORY);
nsIDocument* doc = aTargetNode->OwnerDoc();
@@ -73,7 +73,7 @@ nsHtml5StringParser::ParseDocument(const nsAString& aSourceBuffer,
{
MOZ_ASSERT(!aTargetDoc->GetFirstChild());
NS_ENSURE_TRUE(aSourceBuffer.Length() <= PR_INT32_MAX,
NS_ENSURE_TRUE(aSourceBuffer.Length() <= INT32_MAX,
NS_ERROR_OUT_OF_MEMORY);
mTreeBuilder->setFragmentContext(nullptr,