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

Unified Diff: Source/bindings/core/v8/WrapperTypeInfo.h

Issue 1111163003: Replace v8::Handle<> with v8::Local<> in bindings/core/v8/* (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « Source/bindings/core/v8/WrapCanvasContext.cpp ('k') | Source/bindings/core/v8/WrapperTypeInfo.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/WrapperTypeInfo.h
diff --git a/Source/bindings/core/v8/WrapperTypeInfo.h b/Source/bindings/core/v8/WrapperTypeInfo.h
index 35f251959d28c7ab8d51dce52b8dc6cacc736efa..ed5232e783f2d72e96206f45edaaf07b5073bebb 100644
--- a/Source/bindings/core/v8/WrapperTypeInfo.h
+++ b/Source/bindings/core/v8/WrapperTypeInfo.h
@@ -92,7 +92,7 @@ struct WrapperTypeInfo {
RefCountedObject,
};
- static const WrapperTypeInfo* unwrap(v8::Handle<v8::Value> typeInfoWrapper)
+ static const WrapperTypeInfo* unwrap(v8::Local<v8::Value> typeInfoWrapper)
{
return reinterpret_cast<const WrapperTypeInfo*>(v8::External::Cast(*typeInfoWrapper)->Value());
}
@@ -161,7 +161,7 @@ struct WrapperTypeInfo {
return toActiveDOMObjectFunction(object);
}
- EventTarget* toEventTarget(v8::Handle<v8::Object>) const;
+ EventTarget* toEventTarget(v8::Local<v8::Object>) const;
void visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* scriptWrappable, const v8::Persistent<v8::Object>& wrapper) const
{
@@ -201,7 +201,7 @@ inline T* getInternalField(const v8::PersistentBase<v8::Object>& persistent)
}
template<typename T, int offset>
-inline T* getInternalField(v8::Handle<v8::Object> wrapper)
+inline T* getInternalField(v8::Local<v8::Object> wrapper)
{
ASSERT(offset < wrapper->InternalFieldCount());
return static_cast<T*>(wrapper->GetAlignedPointerFromInternalField(offset));
@@ -217,7 +217,7 @@ inline ScriptWrappable* toScriptWrappable(const v8::Global<v8::Object>& wrapper)
return getInternalField<ScriptWrappable, v8DOMWrapperObjectIndex>(wrapper);
}
-inline ScriptWrappable* toScriptWrappable(v8::Handle<v8::Object> wrapper)
+inline ScriptWrappable* toScriptWrappable(v8::Local<v8::Object> wrapper)
{
return getInternalField<ScriptWrappable, v8DOMWrapperObjectIndex>(wrapper);
}
@@ -232,12 +232,12 @@ inline const WrapperTypeInfo* toWrapperTypeInfo(const v8::Global<v8::Object>& wr
return getInternalField<WrapperTypeInfo, v8DOMWrapperTypeIndex>(wrapper);
}
-inline const WrapperTypeInfo* toWrapperTypeInfo(v8::Handle<v8::Object> wrapper)
+inline const WrapperTypeInfo* toWrapperTypeInfo(v8::Local<v8::Object> wrapper)
{
return getInternalField<WrapperTypeInfo, v8DOMWrapperTypeIndex>(wrapper);
}
-inline void releaseObject(v8::Handle<v8::Object> wrapper)
+inline void releaseObject(v8::Local<v8::Object> wrapper)
{
toWrapperTypeInfo(wrapper)->derefObject(toScriptWrappable(wrapper));
}
« no previous file with comments | « Source/bindings/core/v8/WrapCanvasContext.cpp ('k') | Source/bindings/core/v8/WrapperTypeInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698