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; }
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; }
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; }
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; }
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; }
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; }
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)); }