예제 #1
0
void LayoutListBox::stopAutoscroll()
{
    HTMLSelectElement* select = selectElement();
    if (select->isDisabledFormControl())
        return;
    select->handleMouseRelease();
}
예제 #2
0
bool AXListBoxOption::canSetSelectedAttribute() const {
  if (!isHTMLOptionElement(getNode()))
    return false;

  if (toHTMLOptionElement(getNode())->isDisabledFormControl())
    return false;

  HTMLSelectElement* selectElement = listBoxOptionParentNode();
  if (selectElement && selectElement->isDisabledFormControl())
    return false;

  return true;
}
예제 #3
0
bool AccessibilityListBoxOption::canSetSelectedAttribute() const
{
    if (!is<HTMLOptionElement>(m_optionElement))
        return false;
    
    if (m_optionElement->isDisabledFormControl())
        return false;
    
    HTMLSelectElement* selectElement = listBoxOptionParentNode();
    if (selectElement && selectElement->isDisabledFormControl())
        return false;
    
    return true;
}