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

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

Issue 1071963002: Replace Handle<> with 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/V8DOMWrapper.cpp ('k') | Source/bindings/core/v8/V8GCController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/V8EventListenerList.h
diff --git a/Source/bindings/core/v8/V8EventListenerList.h b/Source/bindings/core/v8/V8EventListenerList.h
index 9271197dc36c3377201e9baec05f7798788bc34e..6a7ad1d1e2a257f57a5864d8db3d557d5fc12d31 100644
--- a/Source/bindings/core/v8/V8EventListenerList.h
+++ b/Source/bindings/core/v8/V8EventListenerList.h
@@ -52,23 +52,23 @@ public:
if (!value->IsObject())
return nullptr;
- v8::Handle<v8::String> wrapperProperty = getHiddenProperty(false, scriptState->isolate());
+ v8::Local<v8::String> wrapperProperty = getHiddenProperty(false, scriptState->isolate());
return doFindWrapper(v8::Local<v8::Object>::Cast(value), wrapperProperty, scriptState);
}
template<typename WrapperType>
static PassRefPtr<V8EventListener> findOrCreateWrapper(v8::Local<v8::Value>, bool isAttribute, ScriptState*);
- static void clearWrapper(v8::Handle<v8::Object> listenerObject, bool isAttribute, v8::Isolate* isolate)
+ static void clearWrapper(v8::Local<v8::Object> listenerObject, bool isAttribute, v8::Isolate* isolate)
{
- v8::Handle<v8::String> wrapperProperty = getHiddenProperty(isAttribute, isolate);
+ v8::Local<v8::String> wrapperProperty = getHiddenProperty(isAttribute, isolate);
listenerObject->DeleteHiddenValue(wrapperProperty);
}
CORE_EXPORT static PassRefPtr<EventListener> getEventListener(ScriptState*, v8::Local<v8::Value>, bool isAttribute, ListenerLookupType);
private:
- static V8EventListener* doFindWrapper(v8::Local<v8::Object> object, v8::Handle<v8::String> wrapperProperty, ScriptState* scriptState)
+ static V8EventListener* doFindWrapper(v8::Local<v8::Object> object, v8::Local<v8::String> wrapperProperty, ScriptState* scriptState)
{
v8::HandleScope scope(scriptState->isolate());
ASSERT(scriptState->isolate()->InContext());
@@ -78,7 +78,7 @@ private:
return static_cast<V8EventListener*>(v8::External::Cast(*listener)->Value());
}
- static inline v8::Handle<v8::String> getHiddenProperty(bool isAttribute, v8::Isolate* isolate)
+ static inline v8::Local<v8::String> getHiddenProperty(bool isAttribute, v8::Isolate* isolate)
{
return isAttribute ? v8AtomicString(isolate, "EventListenerList::attributeListener") : v8AtomicString(isolate, "EventListenerList::listener");
}
@@ -95,7 +95,7 @@ PassRefPtr<V8EventListener> V8EventListenerList::findOrCreateWrapper(v8::Local<v
return nullptr;
v8::Local<v8::Object> object = v8::Local<v8::Object>::Cast(value);
- v8::Handle<v8::String> wrapperProperty = getHiddenProperty(isAttribute, isolate);
+ v8::Local<v8::String> wrapperProperty = getHiddenProperty(isAttribute, isolate);
V8EventListener* wrapper = doFindWrapper(object, wrapperProperty, scriptState);
if (wrapper)
« no previous file with comments | « Source/bindings/core/v8/V8DOMWrapper.cpp ('k') | Source/bindings/core/v8/V8GCController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698