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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp

Issue 1444173002: third_party/WebKit: fix typos found in comments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CL Description change, Typo patch apply to upstream master. Created 5 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/npruntime.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "bindings/core/v8/ScriptValueSerializer.h" 6 #include "bindings/core/v8/ScriptValueSerializer.h"
7 7
8 #include "bindings/core/v8/V8ArrayBuffer.h" 8 #include "bindings/core/v8/V8ArrayBuffer.h"
9 #include "bindings/core/v8/V8ArrayBufferView.h" 9 #include "bindings/core/v8/V8ArrayBufferView.h"
10 #include "bindings/core/v8/V8Blob.h" 10 #include "bindings/core/v8/V8Blob.h"
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 { 686 {
687 ASSERT(!tryCatch.HasCaught()); 687 ASSERT(!tryCatch.HasCaught());
688 v8::Local<v8::Object> creationContext = m_scriptState->context()->Global(); 688 v8::Local<v8::Object> creationContext = m_scriptState->context()->Global();
689 if (messagePorts) { 689 if (messagePorts) {
690 for (size_t i = 0; i < messagePorts->size(); i++) 690 for (size_t i = 0; i < messagePorts->size(); i++)
691 m_transferredMessagePorts.set(toV8Object(messagePorts->at(i).get(), creationContext, isolate()), i); 691 m_transferredMessagePorts.set(toV8Object(messagePorts->at(i).get(), creationContext, isolate()), i);
692 } 692 }
693 if (arrayBuffers) { 693 if (arrayBuffers) {
694 for (size_t i = 0; i < arrayBuffers->size(); i++) { 694 for (size_t i = 0; i < arrayBuffers->size(); i++) {
695 v8::Local<v8::Object> v8ArrayBuffer = toV8Object(arrayBuffers->at(i) .get(), creationContext, isolate()); 695 v8::Local<v8::Object> v8ArrayBuffer = toV8Object(arrayBuffers->at(i) .get(), creationContext, isolate());
696 // Coalesce multiple occurences of the same buffer to the first inde x. 696 // Coalesce multiple occurrences of the same buffer to the first ind ex.
697 if (!m_transferredArrayBuffers.contains(v8ArrayBuffer)) 697 if (!m_transferredArrayBuffers.contains(v8ArrayBuffer))
698 m_transferredArrayBuffers.set(v8ArrayBuffer, i); 698 m_transferredArrayBuffers.set(v8ArrayBuffer, i);
699 } 699 }
700 } 700 }
701 if (imageBitmaps) { 701 if (imageBitmaps) {
702 for (size_t i = 0; i < imageBitmaps->size(); i++) { 702 for (size_t i = 0; i < imageBitmaps->size(); i++) {
703 v8::Local<v8::Object> v8ImageBitmap = toV8Object(imageBitmaps->at(i) .get(), creationContext, isolate()); 703 v8::Local<v8::Object> v8ImageBitmap = toV8Object(imageBitmaps->at(i) .get(), creationContext, isolate());
704 if (!m_transferredImageBitmaps.contains(v8ImageBitmap)) 704 if (!m_transferredImageBitmaps.contains(v8ImageBitmap))
705 m_transferredImageBitmaps.set(v8ImageBitmap, i); 705 m_transferredImageBitmaps.set(v8ImageBitmap, i);
706 } 706 }
(...skipping 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after
2225 return false; 2225 return false;
2226 uint32_t objectReference = m_openCompositeReferenceStack[m_openCompositeRefe renceStack.size() - 1]; 2226 uint32_t objectReference = m_openCompositeReferenceStack[m_openCompositeRefe renceStack.size() - 1];
2227 m_openCompositeReferenceStack.shrink(m_openCompositeReferenceStack.size() - 1); 2227 m_openCompositeReferenceStack.shrink(m_openCompositeReferenceStack.size() - 1);
2228 if (objectReference >= m_objectPool.size()) 2228 if (objectReference >= m_objectPool.size())
2229 return false; 2229 return false;
2230 *object = m_objectPool[objectReference]; 2230 *object = m_objectPool[objectReference];
2231 return true; 2231 return true;
2232 } 2232 }
2233 2233
2234 } // namespace blink 2234 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/npruntime.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698