本文整理汇总了C++中LayoutBoxModelObject::isTableCell方法的典型用法代码示例。如果您正苦于以下问题:C++ LayoutBoxModelObject::isTableCell方法的具体用法?C++ LayoutBoxModelObject::isTableCell怎么用?C++ LayoutBoxModelObject::isTableCell使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LayoutBoxModelObject
的用法示例。
在下文中一共展示了LayoutBoxModelObject::isTableCell方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: createFromRenderer
AXObject* AXObjectCacheImpl::createFromRenderer(LayoutObject* layoutObject)
{
// FIXME: How could layoutObject->node() ever not be an Element?
Node* node = layoutObject->node();
// If the node is aria role="list" or the aria role is empty and its a
// ul/ol/dl type (it shouldn't be a list if aria says otherwise).
if (nodeHasRole(node, "list") || nodeHasRole(node, "directory")
|| (nodeHasRole(node, nullAtom) && (isHTMLUListElement(node) || isHTMLOListElement(node) || isHTMLDListElement(node))))
return AXList::create(layoutObject, *this);
// aria tables
if (nodeHasRole(node, "grid") || nodeHasRole(node, "treegrid"))
return AXARIAGrid::create(layoutObject, *this);
if (nodeHasRole(node, "row"))
return AXARIAGridRow::create(layoutObject, *this);
if (nodeHasRole(node, "gridcell") || nodeHasRole(node, "columnheader") || nodeHasRole(node, "rowheader"))
return AXARIAGridCell::create(layoutObject, *this);
// media controls
if (node && node->isMediaControlElement())
return AccessibilityMediaControl::create(layoutObject, *this);
if (isHTMLOptionElement(node))
return AXListBoxOption::create(layoutObject, *this);
if (layoutObject->isSVGRoot())
return AXSVGRoot::create(layoutObject, *this);
if (layoutObject->isBoxModelObject()) {
LayoutBoxModelObject* cssBox = toLayoutBoxModelObject(layoutObject);
if (cssBox->isListBox())
return AXListBox::create(toLayoutListBox(cssBox), *this);
if (cssBox->isMenuList())
return AXMenuList::create(toLayoutMenuList(cssBox), *this);
// standard tables
if (cssBox->isTable())
return AXTable::create(toLayoutTable(cssBox), *this);
if (cssBox->isTableRow())
return AXTableRow::create(toLayoutTableRow(cssBox), *this);
if (cssBox->isTableCell())
return AXTableCell::create(toLayoutTableCell(cssBox), *this);
// progress bar
if (cssBox->isProgress())
return AXProgressIndicator::create(toLayoutProgress(cssBox), *this);
// input type=range
if (cssBox->isSlider())
return AXSlider::create(toLayoutSlider(cssBox), *this);
}
return AXLayoutObject::create(layoutObject, *this);
}