本文整理汇总了C++中HTMLTableCaptionElement类的典型用法代码示例。如果您正苦于以下问题:C++ HTMLTableCaptionElement类的具体用法?C++ HTMLTableCaptionElement怎么用?C++ HTMLTableCaptionElement使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了HTMLTableCaptionElement类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: jsHTMLTableCaptionElementAlign
JSValue jsHTMLTableCaptionElementAlign(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLTableCaptionElement* castedThis = static_cast<JSHTMLTableCaptionElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
HTMLTableCaptionElement* imp = static_cast<HTMLTableCaptionElement*>(castedThis->impl());
JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::alignAttr));
return result;
}
示例2: webkitAccessibleTableGetCaption
static AtkObject* webkitAccessibleTableGetCaption(AtkTable* table)
{
AccessibilityObject* accTable = core(table);
if (accTable->isAccessibilityRenderObject()) {
Node* node = accTable->node();
if (node && isHTMLTableElement(node)) {
HTMLTableCaptionElement* caption = toHTMLTableElement(node)->caption();
if (caption)
return AccessibilityObject::firstAccessibleObjectFromNode(caption->renderer()->node())->wrapper();
}
}
return 0;
}
示例3: webkitAccessibleTableGetCaption
static AtkObject* webkitAccessibleTableGetCaption(AtkTable* table)
{
g_return_val_if_fail(ATK_TABLE(table), 0);
returnValIfWebKitAccessibleIsInvalid(WEBKIT_ACCESSIBLE(table), 0);
AccessibilityObject* accTable = core(table);
if (accTable->isAccessibilityRenderObject()) {
Node* node = accTable->node();
if (node && isHTMLTableElement(node)) {
HTMLTableCaptionElement* caption = toHTMLTableElement(node)->caption();
if (caption)
return AccessibilityObject::firstAccessibleObjectFromNode(caption->renderer()->element())->wrapper();
}
}
return 0;
}
示例4: toHTMLTableElement
String AccessibilityTable::title() const
{
if (!isAccessibilityTable())
return AccessibilityRenderObject::title();
String title;
if (!m_renderer)
return title;
// see if there is a caption
Node* tableElement = m_renderer->node();
if (tableElement && isHTMLTableElement(tableElement)) {
HTMLTableCaptionElement* caption = toHTMLTableElement(tableElement)->caption();
if (caption)
title = caption->innerText();
}
// try the standard
if (title.isEmpty())
title = AccessibilityRenderObject::title();
return title;
}
示例5: toHTMLTableElement
String AXTable::title() const
{
if (!isAXTable())
return AXRenderObject::title();
String title;
if (!m_renderer)
return title;
// see if there is a caption
Node* tableElement = m_renderer->node();
if (tableElement && tableElement->hasTagName(tableTag)) {
HTMLTableCaptionElement* caption = toHTMLTableElement(tableElement)->caption();
if (caption)
title = caption->innerText();
}
// try the standard
if (title.isEmpty())
title = AXRenderObject::title();
return title;
}
示例6: toHTMLTableElement
String AXTable::title(TextUnderElementMode mode) const
{
if (!isAXTable())
return AXLayoutObject::title(mode);
String title;
if (!m_layoutObject)
return title;
// see if there is a caption
Node* tableElement = m_layoutObject->node();
if (isHTMLTableElement(tableElement)) {
HTMLTableCaptionElement* caption = toHTMLTableElement(tableElement)->caption();
if (caption)
title = caption->innerText();
}
// try the standard
if (title.isEmpty())
title = AXLayoutObject::title(mode);
return title;
}
示例7: setJSHTMLTableCaptionElementAlign
void setJSHTMLTableCaptionElementAlign(ExecState* exec, JSObject* thisObject, JSValue value)
{
JSHTMLTableCaptionElement* castedThis = static_cast<JSHTMLTableCaptionElement*>(thisObject);
HTMLTableCaptionElement* imp = static_cast<HTMLTableCaptionElement*>(castedThis->impl());
imp->setAttribute(WebCore::HTMLNames::alignAttr, valueToStringWithNullCheck(exec, value));
}