本文整理汇总了C++中HTMLHRElement类的典型用法代码示例。如果您正苦于以下问题:C++ HTMLHRElement类的具体用法?C++ HTMLHRElement怎么用?C++ HTMLHRElement使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了HTMLHRElement类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: jsHTMLHRElementWidth
JSValue jsHTMLHRElementWidth(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLHRElement* castedThis = static_cast<JSHTMLHRElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
HTMLHRElement* imp = static_cast<HTMLHRElement*>(castedThis->impl());
JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::widthAttr));
return result;
}
示例2: jsHTMLHRElementNoShade
JSValue jsHTMLHRElementNoShade(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLHRElement* castedThis = static_cast<JSHTMLHRElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
HTMLHRElement* imp = static_cast<HTMLHRElement*>(castedThis->impl());
JSValue result = jsBoolean(imp->hasAttribute(WebCore::HTMLNames::noshadeAttr));
return result;
}
示例3: addSeparator
void PopupMenuImpl::addSeparator(HTMLHRElement& element, bool enableExtraStyling, SharedBuffer* data)
{
PagePopupClient::addString("{\n", data);
PagePopupClient::addString("type: \"separator\",\n", data);
addProperty("title", element.title(), data);
addProperty("ariaLabel", element.fastGetAttribute(HTMLNames::aria_labelAttr), data);
addProperty("disabled", element.isDisabledFormControl(), data);
addElementStyle(element, enableExtraStyling, data);
PagePopupClient::addString("},\n", data);
}
示例4: switch
void JSHTMLHRElement::putValueProperty(ExecState* exec, int token, JSValue* value)
{
switch (token) {
case AlignAttrNum: {
HTMLHRElement* imp = static_cast<HTMLHRElement*>(impl());
imp->setAlign(valueToStringWithNullCheck(exec, value));
break;
}
case NoShadeAttrNum: {
HTMLHRElement* imp = static_cast<HTMLHRElement*>(impl());
imp->setNoShade(value->toBoolean(exec));
break;
}
case SizeAttrNum: {
HTMLHRElement* imp = static_cast<HTMLHRElement*>(impl());
imp->setSize(valueToStringWithNullCheck(exec, value));
break;
}
case WidthAttrNum: {
HTMLHRElement* imp = static_cast<HTMLHRElement*>(impl());
imp->setWidth(valueToStringWithNullCheck(exec, value));
break;
}
}
}
示例5: setJSHTMLHRElementWidth
void setJSHTMLHRElementWidth(ExecState* exec, JSObject* thisObject, JSValue value)
{
JSHTMLHRElement* castedThis = static_cast<JSHTMLHRElement*>(thisObject);
HTMLHRElement* imp = static_cast<HTMLHRElement*>(castedThis->impl());
imp->setAttribute(WebCore::HTMLNames::widthAttr, valueToStringWithNullCheck(exec, value));
}
示例6: setJSHTMLHRElementNoShade
void setJSHTMLHRElementNoShade(ExecState* exec, JSObject* thisObject, JSValue value)
{
JSHTMLHRElement* castedThis = static_cast<JSHTMLHRElement*>(thisObject);
HTMLHRElement* imp = static_cast<HTMLHRElement*>(castedThis->impl());
imp->setBooleanAttribute(WebCore::HTMLNames::noshadeAttr, value.toBoolean(exec));
}