void MultipleFieldsTemporalInputTypeView::updatePickerIndicatorVisibility() { if (m_pickerIndicatorIsAlwaysVisible) { showPickerIndicator(); return; } if (element().hasValidDataListOptions()) showPickerIndicator(); else hidePickerIndicator(); }
void BaseMultipleFieldsDateAndTimeInputType::updatePickerIndicatorVisibility() { if (m_pickerIndicatorIsAlwaysVisible) { showPickerIndicator(); return; } if (element().hasValidDataListOptions()) showPickerIndicator(); else hidePickerIndicator(); }
void BaseMultipleFieldsDateAndTimeInputType::updatePickerIndicatorVisibility() { if (m_pickerIndicatorIsAlwaysVisible) { showPickerIndicator(); return; } #if ENABLE(DATALIST_ELEMENT) if (HTMLDataListElement* dataList = element()->dataList()) { RefPtr<HTMLCollection> options = dataList->options(); for (unsigned i = 0; HTMLOptionElement* option = toHTMLOptionElement(options->item(i)); ++i) { if (element()->isValidValue(option->value())) { showPickerIndicator(); return; } } } hidePickerIndicator(); #endif }