Commit 6429a177 authored by commit-queue@webkit.org's avatar commit-queue@webkit.org
Browse files

2011-01-25 Ilya Sherman <isherman@chromium.org>

        Reviewed by Darin Fisher.

        Chromium WebKit API: Move dispatchFormControlChangeEvent() from WebInputElement to WebFormControlElement
        In service of https://code.google.com/p/chromium/issues/detail?id=42716
        https://bugs.webkit.org/show_bug.cgi?id=53069

        * public/WebFormControlElement.h:
        * public/WebInputElement.h:
        * src/WebFormControlElement.cpp:
        (WebKit::WebFormControlElement::dispatchFormControlChangeEvent): Moved from WebInputElement
        * src/WebInputElement.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76602 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 906abb4a
2011-01-25 Ilya Sherman <isherman@chromium.org>
Reviewed by Darin Fisher.
Chromium WebKit API: Move dispatchFormControlChangeEvent() from WebInputElement to WebFormControlElement
In service of https://code.google.com/p/chromium/issues/detail?id=42716
https://bugs.webkit.org/show_bug.cgi?id=53069
* public/WebFormControlElement.h:
* public/WebInputElement.h:
* src/WebFormControlElement.cpp:
(WebKit::WebFormControlElement::dispatchFormControlChangeEvent): Moved from WebInputElement
* src/WebInputElement.cpp:
2011-01-24 Chris Marrin <cmarrin@apple.com>
 
Reviewed by Eric Seidel.
......@@ -57,6 +57,8 @@ public:
WEBKIT_API WebString formControlName() const;
WEBKIT_API WebString formControlType() const;
WEBKIT_API void dispatchFormControlChangeEvent();
// Returns the name that should be used for the specified |element| when
// storing autofill data. This is either the field name or its id, an empty
// string if it has no name and no id.
......
......@@ -74,7 +74,6 @@ namespace WebKit {
WEBKIT_API WebString placeholder() const;
WEBKIT_API bool isAutofilled() const;
WEBKIT_API void setAutofilled(bool);
WEBKIT_API void dispatchFormControlChangeEvent();
WEBKIT_API void setSelectionRange(int, int);
WEBKIT_API int selectionStart() const;
WEBKIT_API int selectionEnd() const;
......
......@@ -53,6 +53,11 @@ WebString WebFormControlElement::formControlType() const
return constUnwrap<HTMLFormControlElement>()->type();
}
void WebFormControlElement::dispatchFormControlChangeEvent()
{
unwrap<HTMLFormControlElement>()->dispatchFormControlChangeEvent();
}
WebString WebFormControlElement::nameForAutofill() const
{
String name = constUnwrap<HTMLFormControlElement>()->name();
......
......@@ -135,11 +135,6 @@ void WebInputElement::setAutofilled(bool autoFilled)
unwrap<HTMLInputElement>()->setAutofilled(autoFilled);
}
void WebInputElement::dispatchFormControlChangeEvent()
{
unwrap<HTMLInputElement>()->dispatchFormControlChangeEvent();
}
void WebInputElement::setSelectionRange(int start, int end)
{
unwrap<HTMLInputElement>()->setSelectionRange(start, end);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment