Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1971)

Unified Diff: Source/modules/fetch/RequestInit.cpp

Issue 1079003002: bindings: v8::Handle -> v8::Local in Source/Modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixed build errors Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/fetch/RequestInit.cpp
diff --git a/Source/modules/fetch/RequestInit.cpp b/Source/modules/fetch/RequestInit.cpp
index df34d4aa04bf54468da06c457a30bc6af2d3a771..9c25650472dcfc51362fcd58fa8349d06b3745eb 100644
--- a/Source/modules/fetch/RequestInit.cpp
+++ b/Source/modules/fetch/RequestInit.cpp
@@ -38,20 +38,20 @@ RequestInit::RequestInit(ExecutionContext* context, const Dictionary& options, E
OwnPtr<BlobData> blobData = BlobData::create();
v8::Isolate* isolate = toIsolate(context);
if (body->IsArrayBuffer()) {
- DOMArrayBuffer* arrayBuffer = V8ArrayBuffer::toImpl(v8::Handle<v8::Object>::Cast(body));
+ DOMArrayBuffer* arrayBuffer = V8ArrayBuffer::toImpl(v8::Local<v8::Object>::Cast(body));
ASSERT(arrayBuffer);
blobData->appendBytes(arrayBuffer->data(), arrayBuffer->byteLength());
} else if (body->IsArrayBufferView()) {
- DOMArrayBufferView* arrayBufferView = V8ArrayBufferView::toImpl(v8::Handle<v8::Object>::Cast(body));
+ DOMArrayBufferView* arrayBufferView = V8ArrayBufferView::toImpl(v8::Local<v8::Object>::Cast(body));
ASSERT(arrayBufferView);
blobData->appendBytes(arrayBufferView->baseAddress(), arrayBufferView->byteLength());
} else if (V8Blob::hasInstance(body, isolate)) {
- Blob* blob = V8Blob::toImpl(v8::Handle<v8::Object>::Cast(body));
+ Blob* blob = V8Blob::toImpl(v8::Local<v8::Object>::Cast(body));
ASSERT(blob);
blob->appendTo(*blobData);
blobData->setContentType(blob->type());
} else if (V8FormData::hasInstance(body, isolate)) {
- DOMFormData* domFormData = V8FormData::toImpl(v8::Handle<v8::Object>::Cast(body));
+ DOMFormData* domFormData = V8FormData::toImpl(v8::Local<v8::Object>::Cast(body));
ASSERT(domFormData);
RefPtr<FormData> httpBody = domFormData->createMultiPartFormData();
for (size_t i = 0; i < httpBody->elements().size(); ++i) {
« no previous file with comments | « Source/modules/crypto/NormalizeAlgorithm.cpp ('k') | Source/modules/navigatorconnect/AcceptConnectionObserver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698