void DumpRenderTreeSupportQt::setAutofilled(const QWebElement& element, bool isAutofilled) { WebCore::Element* webElement = element.m_element; if (!webElement) return; HTMLInputElement* inputElement = webElement->toInputElement(); if (!inputElement) return; inputElement->setAutofilled(isAutofilled); }
void DumpRenderTreeSupportQt::setValueForUser(const QWebElement& element, const QString& value) { WebCore::Element* webElement = element.m_element; if (!webElement) return; HTMLInputElement* inputElement = webElement->toInputElement(); if (!inputElement) return; inputElement->setValueForUser(value); }
void DumpRenderTreeSupportEfl::setAutofilled(JSContextRef context, JSValueRef nodeObject, bool autofilled) { JSC::ExecState* exec = toJS(context); WebCore::Element* element = WebCore::toElement(toJS(exec, nodeObject)); if (!element) return; WebCore::HTMLInputElement* inputElement = element->toInputElement(); if (!inputElement) return; inputElement->setAutofilled(autofilled); }
void DumpRenderTreeSupportEfl::setValueForUser(JSContextRef context, JSValueRef nodeObject, const String& value) { JSC::ExecState* exec = toJS(context); WebCore::Element* element = WebCore::toElement(toJS(exec, nodeObject)); if (!element) return; WebCore::HTMLInputElement* inputElement = element->toInputElement(); if (!inputElement) return; inputElement->setValueForUser(value); }
void TestRunner::setValueForUser(JSContextRef context, JSValueRef nodeObject, JSStringRef value) { JSC::ExecState* exec = toJS(context); WebCore::Element* element = toElement(toJS(exec, nodeObject)); if (!element) return; WebCore::HTMLInputElement* inputElement = element->toInputElement(); if (!inputElement) return; inputElement->setValueForUser(jsStringRefToWebCoreString(value)); }
void LayoutTestController::setAutofilled(JSContextRef context, JSValueRef nodeObject, bool autofilled) { JSC::ExecState* exec = toJS(context); WebCore::Element* element = toElement(toJS(exec, nodeObject)); if (!element) return; WebCore::HTMLInputElement* inputElement = element->toInputElement(); if (!inputElement) return; inputElement->setAutofilled(autofilled); }
void DumpRenderTreeSupportEfl::setValueForUser(JSContextRef context, JSValueRef nodeObject, JSStringRef value) { JSC::ExecState* exec = toJS(context); WebCore::Element* element = WebCore::toElement(toJS(exec, nodeObject)); if (!element) return; WebCore::HTMLInputElement* inputElement = element->toInputElement(); if (!inputElement) return; size_t bufferSize = JSStringGetMaximumUTF8CStringSize(value); OwnArrayPtr<char> valueBuffer = adoptArrayPtr(new char[bufferSize]); JSStringGetUTF8CString(value, valueBuffer.get(), bufferSize); inputElement->setValueForUser(String::fromUTF8(valueBuffer.get())); }