Add WebKit2 API to figure out if an input or textarea was edited
https://bugs.webkit.org/show_bug.cgi?id=56474 Reviewed by Adam Roben. Source/WebCore: Add HTMLInputElement::lastChangeWasUserEdit and HTMLTextAreaElement::lastChangeWasUserEdit and use them to implement -[DOMHTMLInputElement _isEdited] and -[DOMHTMLTextAreaElement _isEdited] as well as API in WebKit2. * WebCore.exp.in: * bindings/objc/DOMHTML.mm: (-[DOMHTMLInputElement _isEdited]): (-[DOMHTMLTextAreaElement _isEdited]): * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::lastChangeWasUserEdit): * html/HTMLInputElement.h: * html/HTMLTextAreaElement.cpp: (WebCore::HTMLTextAreaElement::lastChangeWasUserEdit): * html/HTMLTextAreaElement.h: Source/WebKit2: Expose WKBundleNodeHandleGetHTMLInputElementLastChangeWasUserEdit and WKBundleNodeHandleGetHTMLTextAreaElementLastChangeWasUserEdit. Next time, I will work on giving these functions longer names. * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp: (WKBundleNodeHandleGetHTMLInputElementLastChangeWasUserEdit): (WKBundleNodeHandleGetHTMLTextAreaElementLastChangeWasUserEdit): * WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h: * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp: (WebKit::InjectedBundleNodeHandle::htmlInputElementLastChangeWasUserEdit): (WebKit::InjectedBundleNodeHandle::htmlTextAreaElementLastChangeWasUserEdit): * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h: git-svn-id: svn://svn.chromium.org/blink/trunk@81263 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment