Bug 56474

Summary: Add WebKit2 API to figure out if an input or textarea was edited
Product: WebKit Reporter: Sam Weinig <sam>
Component: New BugsAssignee: Sam Weinig <sam>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Attachments:
Description Flags
Patch aroben: review+

Description Sam Weinig 2011-03-16 11:22:00 PDT
Add WebKit2 API to figure out if an input or textarea was edited
Comment 1 Sam Weinig 2011-03-16 11:29:56 PDT
Created attachment 85946 [details]
Patch
Comment 2 Adam Roben (:aroben) 2011-03-16 11:33:14 PDT
Comment on attachment 85946 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=85946&action=review

> Source/WebCore/html/HTMLTextAreaElement.cpp:428
> +bool HTMLTextAreaElement::lastChangeWasUserEdit() const
> +{
> +    if (!renderer())
> +        return false;
> +    return toRenderTextControl(renderer())->lastChangeWasUserEdit();

Can someone use -webkit-appearance to make the renderer not a RenderTextControl?
Comment 3 Sam Weinig 2011-03-16 11:37:56 PDT
Landed in r81263.