v8::Handle<v8::Value> V8CanvasRenderingContext2D::fillStyleAccessorGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { CanvasRenderingContext2D* impl = V8CanvasRenderingContext2D::toNative(info.Holder()); return toV8Object(impl->fillStyle()); }
void V8CanvasRenderingContext2D::fillStyleAttributeGetterCustom(const v8::PropertyCallbackInfo<v8::Value>& info) { CanvasRenderingContext2D* impl = V8CanvasRenderingContext2D::toNative(info.Holder()); v8SetReturnValue(info, toV8Object(impl->fillStyle(), info.Holder(), info.GetIsolate())); }
JSValue JSCanvasRenderingContext2D::fillStyle(ExecState* exec) const { CanvasRenderingContext2D* context = static_cast<CanvasRenderingContext2D*>(impl()); return toJS(exec, globalObject(), context->fillStyle()); }