Lines Matching defs:element
71 // Search the children and descendants of the label element for a form element.
72 // per http://dev.w3.org/html5/spec/Overview.html#the-label-element
73 // the form element must be "labelable form-associated element".
82 // Find the first element whose id is controlId. If it is found and it is a labelable form control,
96 if (HTMLElement* element = control())
97 element->setActive(down, pause);
109 if (HTMLElement* element = control())
110 element->setHovered(over);
118 RefPtr<HTMLElement> element = control();
122 if (!element || (evt->target() && element->containsIncludingShadowDOM(evt->target()->toNode())))
128 element->dispatchSimulatedClick(evt);
131 if (element->isMouseFocusable())
132 element->focus();
145 if (HTMLElement* element = control())
146 element->focus();
151 if (HTMLElement* element = control())
152 element->accessKeyAction(sendToAnyElement);