* bindings/scripts/test/JS/JSattribute.cpp:
(WebCore::JSattributeOwner::finalize):
* bindings/scripts/test/JS/JSattribute.h:
(WebCore::wrapperOwner):
(WebCore::wrapperContext):
* bindings/scripts/test/JS/JSreadonly.cpp:
(WebCore::JSreadonlyOwner::finalize):
* bindings/scripts/test/JS/JSreadonly.h:
(WebCore::wrapperOwner):
(WebCore::wrapperContext):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@156824
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2013-10-02 Ryosuke Niwa <rniwa@webkit.org>
+
+ Update binding test results after r156808 for r156769.
+
+ * bindings/scripts/test/JS/JSattribute.cpp:
+ (WebCore::JSattributeOwner::finalize):
+ * bindings/scripts/test/JS/JSattribute.h:
+ (WebCore::wrapperOwner):
+ (WebCore::wrapperContext):
+ * bindings/scripts/test/JS/JSreadonly.cpp:
+ (WebCore::JSreadonlyOwner::finalize):
+ * bindings/scripts/test/JS/JSreadonly.h:
+ (WebCore::wrapperOwner):
+ (WebCore::wrapperContext):
+
2013-10-02 Commit Queue <commit-queue@webkit.org>
Unreviewed, rolling out r156816.
void JSattributeOwner::finalize(JSC::Handle<JSC::Unknown> handle, void* context)
{
JSattribute* jsattribute = jsCast<JSattribute*>(handle.get().asCell());
- DOMWrapperWorld* world = static_cast<DOMWrapperWorld*>(context);
+ DOMWrapperWorld& world = *static_cast<DOMWrapperWorld*>(context);
uncacheWrapper(world, jsattribute->impl(), jsattribute);
jsattribute->releaseImpl();
}
virtual void finalize(JSC::Handle<JSC::Unknown>, void* context);
};
-inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld*, attribute*)
+inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld&, attribute*)
{
DEFINE_STATIC_LOCAL(JSattributeOwner, jsattributeOwner, ());
return &jsattributeOwner;
}
-inline void* wrapperContext(DOMWrapperWorld* world, attribute*)
+inline void* wrapperContext(DOMWrapperWorld& world, attribute*)
{
- return world;
+ return &world;
}
JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, attribute*);
void JSreadonlyOwner::finalize(JSC::Handle<JSC::Unknown> handle, void* context)
{
JSreadonly* jsreadonly = jsCast<JSreadonly*>(handle.get().asCell());
- DOMWrapperWorld* world = static_cast<DOMWrapperWorld*>(context);
+ DOMWrapperWorld& world = *static_cast<DOMWrapperWorld*>(context);
uncacheWrapper(world, jsreadonly->impl(), jsreadonly);
jsreadonly->releaseImpl();
}
virtual void finalize(JSC::Handle<JSC::Unknown>, void* context);
};
-inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld*, readonly*)
+inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld&, readonly*)
{
DEFINE_STATIC_LOCAL(JSreadonlyOwner, jsreadonlyOwner, ());
return &jsreadonlyOwner;
}
-inline void* wrapperContext(DOMWrapperWorld* world, readonly*)
+inline void* wrapperContext(DOMWrapperWorld& world, readonly*)
{
- return world;
+ return &world;
}
JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, readonly*);