bool DumpRenderTreeSupportEfl::elementDoesAutoCompleteForElementWithId(const Evas_Object* ewkFrame, const String& elementId) { DRT_SUPPORT_FRAME_GET_OR_RETURN(ewkFrame, frame, false); WebCore::Document* document = frame->document(); ASSERT(document); WebCore::HTMLInputElement* inputElement = static_cast<WebCore::HTMLInputElement*>(document->getElementById(elementId)); if (!inputElement) return false; return inputElement->isTextField() && !inputElement->isPasswordField() && inputElement->shouldAutocomplete(); }
bool DumpRenderTreeSupportEfl::elementDoesAutoCompleteForElementWithId(const Evas_Object* ewkFrame, const String& elementId) { WebCore::Frame* frame = EWKPrivate::coreFrame(ewkFrame); if (!frame) return false; WebCore::Document* document = frame->document(); ASSERT(document); WebCore::HTMLInputElement* inputElement = static_cast<WebCore::HTMLInputElement*>(document->getElementById(elementId)); if (!inputElement) return false; return inputElement->isTextField() && !inputElement->isPasswordField() && inputElement->shouldAutocomplete(); }