コード例 #1
0
JSValue jsValidityStateTooLong(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->tooLong());
}
コード例 #2
0
 static v8::Handle<v8::Value> tooLongAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) {
   INC_STATS("DOM.ValidityState.tooLong._get");
   ValidityState* imp = V8ValidityState::toNative(info.Holder());
   return v8Boolean(imp->tooLong());
 }