Commit d827e31a authored by hclam@chromium.org's avatar hclam@chromium.org

Fix build bustage

TBR=jorlow, abarth
Review URL: http://codereview.chromium.org/149376

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20222 0039d316-1c4b-4281-b951-d872f2087c98
parent ef332b7e
......@@ -39,6 +39,7 @@
#include "PlatformString.h"
#include "ScriptController.h"
#include "V8CustomBinding.h"
#include "V8GCController.h"
#include "V8Helpers.h"
#include "V8NPUtils.h"
#include "V8Proxy.h"
......@@ -60,7 +61,7 @@ static void FreeV8NPObject(NPObject* npobj)
{
V8NPObject *object = reinterpret_cast<V8NPObject*>(npobj);
#ifndef NDEBUG
V8Proxy::unregisterGlobalHandle(object, object->v8Object);
V8GCController::unregisterGlobalHandle(object, object->v8Object);
#endif
object->v8Object.Dispose();
free(object);
......@@ -113,7 +114,7 @@ NPObject* npCreateV8ScriptObject(NPP npp, v8::Handle<v8::Object> object, WebCore
V8NPObject* obj = reinterpret_cast<V8NPObject*>(NPN_CreateObject(npp, &V8NPObjectClass));
obj->v8Object = v8::Persistent<v8::Object>::New(object);
#ifndef NDEBUG
V8Proxy::registerGlobalHandle(WebCore::NPOBJECT, obj, obj->v8Object);
V8GCController::registerGlobalHandle(WebCore::NPOBJECT, obj, obj->v8Object);
#endif
obj->rootObject = root;
return reinterpret_cast<NPObject*>(obj);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment