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

Unified Diff: Source/bindings/core/v8/WrapperTypeInfo.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/WindowProxy.cpp ('k') | Source/bindings/core/v8/custom/V8ArrayBufferCustom.h » ('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 863da90b128dae707d4809f059d6961aade3b3fa..610f0b9dea90c3b7fbd815390fa358f94cc9a388 100644
--- a/Source/bindings/core/v8/WrapperTypeInfo.h
+++ b/Source/bindings/core/v8/WrapperTypeInfo.h
@@ -205,7 +205,7 @@ inline T* getInternalField(v8::Handle<v8::Object> wrapper)
return static_cast<T*>(wrapper->GetAlignedPointerFromInternalField(offset));
}
-inline ScriptWrappableBase* toInternalPointer(v8::Handle<v8::Object> wrapper)
+inline ScriptWrappableBase* toScriptWrappableBase(v8::Handle<v8::Object> wrapper)
{
return getInternalField<ScriptWrappableBase, v8DOMWrapperObjectIndex>(wrapper);
}
@@ -242,11 +242,11 @@ inline void releaseObject(v8::Handle<v8::Object> wrapper)
delete handle;
#else
ASSERT(typeInfo->derefObjectFunction);
- typeInfo->derefObjectFunction(toInternalPointer(wrapper));
+ typeInfo->derefObjectFunction(toScriptWrappableBase(wrapper));
#endif
} else {
ASSERT(typeInfo->derefObjectFunction);
- typeInfo->derefObjectFunction(toInternalPointer(wrapper));
+ typeInfo->derefObjectFunction(toScriptWrappableBase(wrapper));
}
}
« no previous file with comments | « Source/bindings/core/v8/WindowProxy.cpp ('k') | Source/bindings/core/v8/custom/V8ArrayBufferCustom.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698