Bug 56474 - Add WebKit2 API to figure out if an input or textarea was edited
Summary: Add WebKit2 API to figure out if an input or textarea was edited
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Sam Weinig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-16 11:22 PDT by Sam Weinig
Modified: 2011-03-16 11:37 PDT (History)
0 users

See Also:


Attachments
Patch (11.55 KB, patch)
2011-03-16 11:29 PDT, Sam Weinig
aroben: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.