本文整理汇总了C++中HTMLObjectElement类的典型用法代码示例。如果您正苦于以下问题:C++ HTMLObjectElement类的具体用法?C++ HTMLObjectElement怎么用?C++ HTMLObjectElement使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了HTMLObjectElement类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: formAttrGetter
static v8::Handle<v8::Value> formAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
INC_STATS("DOM.HTMLObjectElement.form._get");
HTMLObjectElement* imp = V8HTMLObjectElement::toNative(info.Holder());
if (!R_check(imp)) return v8::Handle<v8::Value>(v8::Undefined());
return toV8(imp->form());
}
示例2: vspaceAttrGetter
static v8::Handle<v8::Value> vspaceAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
INC_STATS("DOM.HTMLObjectElement.vspace._get");
HTMLObjectElement* imp = V8HTMLObjectElement::toNative(info.Holder());
if (!R_check(imp)) return v8::Handle<v8::Value>(v8::Undefined());
return v8::Integer::New(imp->getIntegralAttribute(WebCore::HTMLNames::vspaceAttr));
}
示例3: declareAttrGetter
static v8::Handle<v8::Value> declareAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
INC_STATS("DOM.HTMLObjectElement.declare._get");
HTMLObjectElement* imp = V8HTMLObjectElement::toNative(info.Holder());
if (!R_check(imp)) return v8::Handle<v8::Value>(v8::Undefined());
return v8Boolean(imp->hasAttribute(WebCore::HTMLNames::declareAttr));
}
示例4: jsHTMLObjectElementDeclare
JSValue jsHTMLObjectElementDeclare(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
JSValue result = jsBoolean(imp->hasAttribute(WebCore::HTMLNames::declareAttr));
return result;
}
示例5: declareAttrSetter
static void declareAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
{
INC_STATS("DOM.HTMLObjectElement.declare._set");
HTMLObjectElement* imp = V8HTMLObjectElement::toNative(info.Holder());
bool v = value->BooleanValue();
imp->setBooleanAttribute(WebCore::HTMLNames::declareAttr, v);
return;
}
示例6: vspaceAttrSetter
static void vspaceAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
{
INC_STATS("DOM.HTMLObjectElement.vspace._set");
HTMLObjectElement* imp = V8HTMLObjectElement::toNative(info.Holder());
int v = toInt32(value);
imp->setIntegralAttribute(WebCore::HTMLNames::vspaceAttr, v);
return;
}
示例7: jsHTMLObjectElementValidationMessage
JSValue jsHTMLObjectElementValidationMessage(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
JSValue result = jsString(exec, imp->validationMessage());
return result;
}
示例8: jsHTMLObjectElementValidity
JSValue jsHTMLObjectElementValidity(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->validity()));
return result;
}
示例9: jsHTMLObjectElementWillValidate
JSValue jsHTMLObjectElementWillValidate(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
JSValue result = jsBoolean(imp->willValidate());
return result;
}
示例10: jsHTMLObjectElementWidth
JSValue jsHTMLObjectElementWidth(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::widthAttr));
return result;
}
示例11: jsHTMLObjectElementVspace
JSValue jsHTMLObjectElementVspace(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
JSValue result = jsNumber(imp->getIntegralAttribute(WebCore::HTMLNames::vspaceAttr));
return result;
}
示例12: HTMLObjectElement
HTMLObjectElement* HTMLObjectElement::create(Document& document,
HTMLFormElement* form,
bool createdByParser) {
HTMLObjectElement* element =
new HTMLObjectElement(document, form, createdByParser);
element->ensureUserAgentShadowRoot();
return element;
}
示例13: contentDocumentAttrGetter
static v8::Handle<v8::Value> contentDocumentAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
INC_STATS("DOM.HTMLObjectElement.contentDocument._get");
HTMLObjectElement* imp = V8HTMLObjectElement::toNative(info.Holder());
if (!R_check(imp)) return v8::Handle<v8::Value>(v8::Undefined());
if (!V8BindingSecurity::checkNodeSecurity(V8BindingState::Only(), imp->contentDocument()))
return v8::Handle<v8::Value>();
return toV8(imp->contentDocument());
}
示例14: jsHTMLObjectElementPrototypeFunctionCheckValidity
EncodedJSValue JSC_HOST_CALL jsHTMLObjectElementPrototypeFunctionCheckValidity(ExecState* exec)
{
JSValue thisValue = exec->hostThisValue();
if (!thisValue.inherits(&JSHTMLObjectElement::s_info))
return throwVMTypeError(exec);
JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(thisValue));
HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
JSC::JSValue result = jsBoolean(imp->checkValidity());
return JSValue::encode(result);
}
示例15: isExposed
bool HTMLObjectElement::isExposed() const
{
// http://www.whatwg.org/specs/web-apps/current-work/#exposed
for (HTMLObjectElement* ancestor = Traversal<HTMLObjectElement>::firstAncestor(*this); ancestor; ancestor = Traversal<HTMLObjectElement>::firstAncestor(*ancestor)) {
if (ancestor->isExposed())
return false;
}
for (HTMLElement& element : Traversal<HTMLElement>::descendantsOf(*this)) {
if (isHTMLObjectElement(element) || isHTMLEmbedElement(element))
return false;
}
return true;
}