JSValue jsValidityStateValid(ExecState* exec, const Identifier&, const PropertySlot& slot) { JSValidityState* castedThis = static_cast<JSValidityState*>(asObject(slot.slotBase())); UNUSED_PARAM(exec); ValidityState* imp = static_cast<ValidityState*>(castedThis->impl()); return jsBoolean(imp->valid()); }
static v8::Handle<v8::Value> validAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.ValidityState.valid._get"); ValidityState* imp = V8ValidityState::toNative(info.Holder()); return v8Boolean(imp->valid()); }