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

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

Issue 1878943003: Remove RawPtr from bindings/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp
index a92736be05aafd9662f21def37a4348b7c33ccf3..75d9d659b76ab3bea78a5c6bfa59306283affff6 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp
@@ -1636,10 +1636,10 @@ bool SerializedScriptValueReader::readImageBitmap(v8::Local<v8::Value>* value)
return false;
ImageBitmapOptions options;
options.setPremultiplyAlpha("none");
- RawPtr<ImageBitmap> imageBitmap = ImageBitmap::create(imageData, IntRect(0, 0, imageData->width(), imageData->height()), options, true);
- if (!imageBitmap.get())
+ ImageBitmap* imageBitmap = ImageBitmap::create(imageData, IntRect(0, 0, imageData->width(), imageData->height()), options, true);
+ if (!imageBitmap)
return false;
- *value = toV8(imageBitmap.get(), m_scriptState->context()->Global(), isolate());
+ *value = toV8(imageBitmap, m_scriptState->context()->Global(), isolate());
return !value->IsEmpty();
}
@@ -2174,10 +2174,10 @@ bool ScriptValueDeserializer::tryGetTransferredImageBitmap(uint32_t index, v8::L
return false;
v8::Local<v8::Value> result = m_imageBitmaps.at(index);
if (result.IsEmpty()) {
- RawPtr<ImageBitmap> bitmap = ImageBitmap::create(m_imageBitmapContents->at(index));
+ ImageBitmap* bitmap = ImageBitmap::create(m_imageBitmapContents->at(index));
v8::Isolate* isolate = m_reader.getScriptState()->isolate();
v8::Local<v8::Object> creationContext = m_reader.getScriptState()->context()->Global();
- result = toV8(bitmap.get(), creationContext, isolate);
+ result = toV8(bitmap, creationContext, isolate);
if (result.IsEmpty())
return false;
m_imageBitmaps[index] = result;

Powered by Google App Engine
This is Rietveld 408576698