Bug 777806 - rename RootResultArrayBuffer to RootJSResultObjects. r=bz

This commit is contained in:
Andrew McCreight 2012-08-05 08:41:13 -07:00
parent 1d8d82865d
commit 0385c11354
2 changed files with 4 additions and 4 deletions

View File

@ -480,7 +480,7 @@ nsXMLHttpRequest::~nsXMLHttpRequest()
}
void
nsXMLHttpRequest::RootResultArrayBuffer()
nsXMLHttpRequest::RootJSResultObjects()
{
nsContentUtils::PreserveWrapper(
static_cast<nsIDOMEventTarget*>(
@ -977,7 +977,7 @@ nsXMLHttpRequest::CreateResponseParsedJSON(JSContext* aCx)
if (!aCx) {
return NS_ERROR_FAILURE;
}
RootResultArrayBuffer();
RootJSResultObjects();
// The Unicode converter has already zapped the BOM if there was one
if (!JS_ParseJSON(aCx,
@ -1200,7 +1200,7 @@ nsXMLHttpRequest::GetResponse(JSContext* aCx, ErrorResult& aRv)
}
if (!mResultArrayBuffer) {
RootResultArrayBuffer();
RootJSResultObjects();
aRv = nsContentUtils::CreateArrayBuffer(aCx, mResponseBody,
&mResultArrayBuffer);
if (aRv.Failed()) {

View File

@ -492,7 +492,7 @@ public:
NS_DECL_CYCLE_COLLECTION_SKIPPABLE_SCRIPT_HOLDER_CLASS_INHERITED(nsXMLHttpRequest,
nsXHREventTarget)
bool AllowUploadProgress();
void RootResultArrayBuffer();
void RootJSResultObjects();
virtual void DisconnectFromOwner();
protected: