当前位置: 首页>>代码示例>>C++>>正文


C++ HTMLTableCaptionElement类代码示例

本文整理汇总了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;
}
开发者ID:13W,项目名称:phantomjs,代码行数:8,代码来源:JSHTMLTableCaptionElement.cpp

示例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;
}
开发者ID:3163504123,项目名称:phantomjs,代码行数:13,代码来源:WebKitAccessibleInterfaceTable.cpp

示例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;
}
开发者ID:ZeusbaseWeb,项目名称:webkit,代码行数:16,代码来源:WebKitAccessibleInterfaceTable.cpp

示例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;
}
开发者ID:CannedFish,项目名称:webkitgtk,代码行数:23,代码来源:AccessibilityTable.cpp

示例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;
}
开发者ID:kublaj,项目名称:blink,代码行数:23,代码来源:AXTable.cpp

示例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;
}
开发者ID:kingysu,项目名称:blink-crosswalk,代码行数:23,代码来源:AXTable.cpp

示例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));
}
开发者ID:13W,项目名称:phantomjs,代码行数:6,代码来源:JSHTMLTableCaptionElement.cpp


注:本文中的HTMLTableCaptionElement类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。