Lines Matching refs:element
40 void OptionElement::setSelectedState(OptionElementData& data, Element* element, bool selected) in setSelectedState() argument
46 element->setNeedsStyleRecalc(); in setSelectedState()
49 int OptionElement::optionIndex(SelectElement* selectElement, const Element* element) in optionIndex() argument
62 if (items[i] == element) in optionIndex()
70 …ring OptionElement::collectOptionLabelOrText(const OptionElementData& data, const Element* element) in collectOptionLabelOrText() argument
72 Document* document = element->document(); in collectOptionLabelOrText()
79 text = collectOptionInnerText(element); in collectOptionLabelOrText()
83 String OptionElement::collectOptionInnerText(const Element* element) in collectOptionInnerText() argument
86 Node* n = element->firstChild(); in collectOptionInnerText()
93 n = n->traverseNextSibling(element); in collectOptionInnerText()
95 n = n->traverseNextNode(element); in collectOptionInnerText()
112 …ement::collectOptionTextRespectingGroupLabel(const OptionElementData& data, const Element* element) in collectOptionTextRespectingGroupLabel() argument
114 Element* parentElement = static_cast<Element*>(element->parentNode()); in collectOptionTextRespectingGroupLabel()
116 return " " + collectOptionLabelOrText(data, element); in collectOptionTextRespectingGroupLabel()
118 return collectOptionLabelOrText(data, element); in collectOptionTextRespectingGroupLabel()
121 String OptionElement::collectOptionValue(const OptionElementData& data, const Element* element) in collectOptionValue() argument
128 return collectOptionInnerText(element).stripWhiteSpace(); in collectOptionValue()
137 OptionElement* toOptionElement(Element* element) in toOptionElement() argument
139 if (element->isHTMLElement() && element->hasTagName(HTMLNames::optionTag)) in toOptionElement()
140 return static_cast<HTMLOptionElement*>(element); in toOptionElement()
143 if (element->isWMLElement() && element->hasTagName(WMLNames::optionTag)) in toOptionElement()
144 return static_cast<WMLOptionElement*>(element); in toOptionElement()
150 bool isOptionElement(Element* element) in isOptionElement() argument
152 return element->hasLocalName(HTMLNames::optionTag) in isOptionElement()
154 || element->hasLocalName(WMLNames::optionTag) in isOptionElement()