本文整理汇总了C++中HTMLOptionsCollection::ownerNode方法的典型用法代码示例。如果您正苦于以下问题:C++ HTMLOptionsCollection::ownerNode方法的具体用法?C++ HTMLOptionsCollection::ownerNode怎么用?C++ HTMLOptionsCollection::ownerNode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTMLOptionsCollection
的用法示例。
在下文中一共展示了HTMLOptionsCollection::ownerNode方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: removeElement
v8::Handle<v8::Value> V8HTMLOptionsCollection::removeCallback(const v8::Arguments& args)
{
INC_STATS("DOM.HTMLOptionsCollection.remove()");
HTMLOptionsCollection* imp = V8HTMLOptionsCollection::toNative(args.Holder());
HTMLSelectElement* base = static_cast<HTMLSelectElement*>(imp->ownerNode());
return removeElement(base, args);
}
示例2: toOptionsCollectionSetter
v8::Handle<v8::Value> V8HTMLOptionsCollection::indexedPropertySetter(uint32_t index, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
{
INC_STATS("DOM.HTMLOptionsCollection.IndexedPropertySetter");
HTMLOptionsCollection* collection = V8HTMLOptionsCollection::toNative(info.Holder());
HTMLSelectElement* base = static_cast<HTMLSelectElement*>(collection->ownerNode());
return toOptionsCollectionSetter(index, value, base, info.GetIsolate());
}
示例3: remove
JSValue JSHTMLOptionsCollection::remove(ExecState* exec)
{
HTMLOptionsCollection* imp = static_cast<HTMLOptionsCollection*>(impl());
JSHTMLSelectElement* base = jsCast<JSHTMLSelectElement*>(asObject(toJS(exec, globalObject(), imp->ownerNode())));
return base->remove(exec);
}
示例4: indexSetter
void JSHTMLOptionsCollection::indexSetter(ExecState* exec, unsigned index, JSValue value)
{
HTMLOptionsCollection* imp = static_cast<HTMLOptionsCollection*>(impl());
HTMLSelectElement* base = toHTMLSelectElement(imp->ownerNode());
selectIndexSetter(base, exec, index, value);
}
示例5: toHTMLSelectElement
void V8HTMLOptionsCollection::removeMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
{
HTMLOptionsCollection* imp = V8HTMLOptionsCollection::toNative(args.Holder());
HTMLSelectElement* base = toHTMLSelectElement(imp->ownerNode());
removeElement(base, args);
}