Re: [webkit-dev] Name Getters

2009-07-23 Thread Eric Seidel
Ah! Nevermind. nameGetter is static. static JSC::JSValue nameGetter(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&); -eric On Thu, Jul 23, 2009 at 3:04 PM, Eric Seidel wrote: > Is it possible to move a name getter onto a different JavaScript object? > > > Example: > JSVa

[webkit-dev] Name Getters

2009-07-23 Thread Eric Seidel
Is it possible to move a name getter onto a different JavaScript object? Example: JSValue JSHTMLFormElement::nameGetter(ExecState* exec, const Identifier& propertyName, const PropertySlot& slot) { JSHTMLElement* jsForm = static_cast(asObject(slot.slotBase())); HTMLFormElement* form = stat