Home | History | Annotate | Download | only in accessibility

Lines Matching refs:Element

257     InputElement* inputElement = toInputElement(static_cast<Element*>(m_renderer->node()));
355 InputElement* inputElement = toInputElement(static_cast<Element*>(m_renderer->node()));
369 InputElement* inputElement = toInputElement(static_cast<Element*>(m_renderer->node()));
457 Element* element = static_cast<Element*>(node);
458 return element->getAttribute(aria_levelAttr).toInt();
498 return node && ((node->isElementNode() && static_cast<Element*>(node)->isFormControlElement())
557 Element* element = static_cast<Element*>(node);
558 return element->getAttribute(attribute);
561 Element* AccessibilityRenderObject::anchorElement() const
582 // search up the DOM tree for an anchor element
587 return static_cast<Element*>(node);
593 Element* AccessibilityRenderObject::actionElement() const
605 return static_cast<Element*>(node);
609 return static_cast<Element*>(m_renderer->node());
612 return static_cast<Element*>(m_renderer->node());
615 return static_cast<Element*>(m_renderer->node());
618 return static_cast<Element*>(m_renderer->node());
622 return static_cast<Element*>(m_renderer->node());
624 Element* elt = anchorElement();
630 Element* AccessibilityRenderObject::mouseButtonListener() const
644 for (Element* element = static_cast<Element*>(node); element; element = element->parentElement()) {
645 if (element->getAttributeEventListener(eventNames().clickEvent) || element->getAttributeEventListener(eventNames().mousedownEvent) || element->getAttributeEventListener(eventNames().mouseupEvent))
646 return element;
668 static Element* siblingWithAriaRole(String role, Node* node)
673 String siblingAriaRole = static_cast<Element*>(sibling)->getAttribute(roleAttr).string();
675 return static_cast<Element*>(sibling);
683 Element* AccessibilityRenderObject::menuElementForMenuButton() const
693 Element* menu = menuElementForMenuButton();
699 Element* AccessibilityRenderObject::menuItemElementForMenu() const
709 Element* menuItem = menuItemElementForMenu();
727 const AtomicString& summary = static_cast<Element*>(curr->node())->getAttribute(summaryAttr);
730 const AtomicString& title = static_cast<Element*>(curr->node())->getAttribute(titleAttr);
747 Element* element = static_cast<Element*>(node);
748 String ariaLevel = element->getAttribute(aria_levelAttr);
778 // Defer to parent if this element doesn't have a language set
786 String language = static_cast<Element*>(node)->getAttribute(langAttr);
955 String AccessibilityRenderObject::accessibilityDescriptionForElements(Vector<Element*> &elements) const
960 Element* idElement = elements[i];
976 void AccessibilityRenderObject::elementsFromAttribute(Vector<Element*>& elements, const QualifiedName& attribute) const
997 Element* idElement = document->getElementById(idName);
1003 void AccessibilityRenderObject::ariaLabeledByElements(Vector<Element*>& elements) const
1012 Vector<Element*> elements;
1018 static HTMLLabelElement* labelForElement(Element* element)
1020 RefPtr<NodeList> list = element->document()->getElementsByTagName("label");
1025 if (label->correspondingControl() == element)
1038 // the control element should not be considered part of the label
1078 HTMLLabelElement* label = labelForElement(static_cast<Element*>(node));
1105 Vector<Element*> elements;
1191 HTMLLabelElement* label = labelForElement(static_cast<Element*>(m_renderer->node()));
1232 Element* element = anchorElement();
1233 if (!element)
1237 if (!element->hasTagName(aTag))
1239 HTMLAnchorElement* anchor = static_cast<HTMLAnchorElement*>(element);
1255 // The element we find may not be accessible, so find the first accessible object.
1314 // override the "label" element association.
1328 Vector<Element*> elements;
1334 Element* element = elements[k];
1335 AccessibilityObject* flowToElement = cache->getOrCreate(element->renderer());
1381 // checkbox or radio buttons don't expose the title ui element unless it has a title already
1403 Node* element = m_renderer->node();
1404 HTMLLabelElement* label = labelForElement(static_cast<Element*>(element));
1469 // ignore invisible element
1479 // If this element is within a parent that cannot have children, it should not be exposed.
1496 // find out if this element is inside of a label element.
1544 Element* element = static_cast<Element*>(node);
1545 const AtomicString& contentEditable = element->getAttribute(contenteditableAttr);
1556 Element* elt = static_cast<Element*>(node);
1640 return static_cast<Element*>(node)->innerText();
1712 return static_cast<Element*>(node)->getAttribute(accesskeyAttr);
1802 Element* element = static_cast<Element*>(node);
1803 element->setAttribute(attributeName, (value) ? "true" : "false");
1873 Vector<Element*> elements;
1878 Element* element = elements[k];
1879 AccessibilityObject* tabPanel = axObjectCache()->getOrCreate(element->renderer());
1886 // Check if the focused element is a descendant of the element controlled by the tab item.
1928 static_cast<Element*>(m_renderer->node())->focus();
1979 Node* element = m_renderer->node();
1980 if (element && element->isElementNode())
1981 static_cast<Element*>(element)->setAttribute(aria_valuenowAttr, string);
1987 Vector<Element*> elements;
2019 return static_cast<Element*>(node)->isEnabledFormControl();
2492 // If this element is the label of a control, a hit test should return the control.
2548 Element* element = static_cast<Element*>(m_renderer->node());
2550 String activeDescendantAttrStr = element->getAttribute(aria_activedescendantAttr).string();
2554 Element* target = document()->getElementById(activeDescendantAttrStr);
2568 Element* element = static_cast<Element*>(renderer()->node());
2569 if (!element)
2572 if (!doc->frame()->selection()->isFocusedAndActive() || doc->focusedNode() != element)
2600 Element*>(node));
2782 if (!static_cast<Element*>(node)->isEnabledFormControl())
2825 // If this element supports ARIA live regions, then notify the AT of changes.
2863 // If this element supports ARIA live regions, then notify the AT of changes.
2938 // add an <area> element for this child if it has a link
3031 Element* element = static_cast<Element*>(renderer()->node());
3032 if (!element || !element->isElementNode()) // do this check to ensure safety of static_cast above
3044 Element* childElement = static_cast<Element*>(childRenderer->node());
3156 Element* anchor = anchorElement();
3169 Element* anchor = anchorElement();
3184 static bool shouldReturnTagNameAsRoleForMSAA(const Element& element)
3189 return element.hasTagName(h1Tag) || element.hasTagName(h2Tag)
3190 || element.hasTagName(h3Tag) || element.hasTagName(h4Tag)
3191 || element.hasTagName(h5Tag) || element.hasTagName(h6Tag);
3203 Element* element = static_cast<Element*>(node);
3204 if (!shouldReturnTagNameAsRoleForMSAA(*element))
3207 return element->tagName();