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

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

Issue 537403002: bindings: Renames from/toInternalPointer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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/DOMDataStore.h ('k') | Source/bindings/core/v8/Dictionary.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/DOMWrapperMap.h
diff --git a/Source/bindings/core/v8/DOMWrapperMap.h b/Source/bindings/core/v8/DOMWrapperMap.h
index 8c03102008552bda54209ff24c57983bfaa95fb5..809f76b5e8297fca5f109a8f8117dd637127a551 100644
--- a/Source/bindings/core/v8/DOMWrapperMap.h
+++ b/Source/bindings/core/v8/DOMWrapperMap.h
@@ -70,7 +70,7 @@ public:
void set(KeyType* key, v8::Handle<v8::Object> wrapper, const WrapperTypeInfo* wrapperTypeInfo)
{
- ASSERT(reinterpret_cast<KeyType*>(toInternalPointer(wrapper)) == key);
+ ASSERT(reinterpret_cast<KeyType*>(toScriptWrappableBase(wrapper)) == key);
RELEASE_ASSERT(!containsKey(key)); // See crbug.com/368095
v8::UniquePersistent<v8::Object> unique(m_isolate, wrapper);
wrapperTypeInfo->configureWrapper(&unique);
@@ -142,7 +142,7 @@ private:
static KeyType* KeyFromWeakCallbackData(
const v8::WeakCallbackData<v8::Object, WeakCallbackDataType>& data)
{
- return reinterpret_cast<KeyType*>(toInternalPointer(data.GetValue()));
+ return reinterpret_cast<KeyType*>(toScriptWrappableBase(data.GetValue()));
}
// Dispose traits:
« no previous file with comments | « Source/bindings/core/v8/DOMDataStore.h ('k') | Source/bindings/core/v8/Dictionary.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698