+2013-09-26 Brent Fulgham <bfulgham@apple.com>
+
+ [Windows] Unreviewed build fix after r156487.
+
+ Add explicit casting needed by MSVC to compile this code. Much
+ of this could probably be removed when we move to VS2012 or newer.
+
+ * bindings/js/JSEventListener.cpp:
+ (WebCore::JSEventListener::JSEventListener):
+ * bindings/js/JSEventListener.h:
+ (WebCore::JSEventListener::jsFunction):
+ * bridge/jsc/BridgeJSC.cpp:
+ (JSC::Bindings::Instance::createRuntimeObject):
+
2013-09-26 Commit Queue <commit-queue@webkit.org>
Unreviewed, rolling out r156510.
if (!m_jsFunction) {
JSC::JSObject* function = initializeJSFunction(scriptExecutionContext);
JSC::Heap::writeBarrier(m_wrapper.get(), function);
- m_jsFunction = function;
+ m_jsFunction = JSC::Weak<JSC::JSObject>(function);
}
// Verify that we have a valid wrapper protecting our function from
JSLockHolder lock(exec);
RuntimeObject* newObject = newRuntimeObject(exec);
- m_runtimeObject = newObject;
+ m_runtimeObject = JSC::Weak<RuntimeObject>(newObject);
m_rootObject->addRuntimeObject(exec->vm(), newObject);
return newObject;
}