Lines Matching refs:Element
182 // Make sure we will not end up with two frames referencing the same owner element.
459 String Frame::searchForLabelsBeforeElement(const Vector<String>& labels, Element* element, size_t* resultDistance, bool* resultIsInCellAbove)
467 // If the starting element is within a table, the cell that contains it
476 // walk backwards in the node tree, until another element, or form, or end of tree
479 for (n = element->traversePreviousNode();
484 || (n->isHTMLElement() && static_cast<Element*>(n)->isFormControlElement()))
486 // We hit another form element or the start of the form - bail out
515 // previous element, we still might need to search the row above us for a label.
562 String Frame::matchLabelsAgainstElement(const Vector<String>& labels, Element* element)
564 // Match against the name element, then against the id element if no match is found for the name element.
565 // See 7538330 for one popular site that benefits from the id element check.
568 String resultFromNameAttribute = matchLabelsAgainstString(labels, element->getAttribute(nameAttr));
572 return matchLabelsAgainstString(labels, element->getAttribute(idAttr));
601 // Helper function that tells whether a particular node is an element that has an entire
987 Element *elem = pos.element();
991 RefPtr<Element
1022 void Frame::textFieldDidBeginEditing(Element* e)
1028 void Frame::textFieldDidEndEditing(Element* e)
1034 void Frame::textDidChangeInTextField(Element* e)
1040 bool Frame::doTextFieldCommandFromEvent(Element* e, KeyboardEvent* ke)
1048 void Frame::textWillBeDeletedInTextField(Element* input)
1054 void Frame::textDidChangeInTextArea(Element* e)
1065 applyEditingStyleToElement(static_cast<Element*>(list->item(i)));
1073 removeEditingStyleFromElement(static_cast<Element*>(list->item(i)));
1076 void Frame::applyEditingStyleToElement(Element* element) const
1078 if (!element)
1081 CSSStyleDeclaration* style = element->style();
1093 void Frame::removeEditingStyleFromElement(Element*) const
1257 else if (n->isHTMLElement() && static_cast<Element*>(n)->isFormControlElement())
1276 // try walking up the node tree to find a form element
1281 else if (n->isHTMLElement() && static_cast<Element*>(n)->isFormControlElement())
1285 // try walking forward in the node tree to find a form element
1362 RefPtr<Element> styleElement = document()->createElement(spanTag, false);