Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2851)

Unified Diff: WebCore/dom/InputElement.cpp

Issue 5589004: Merge 73319 - 2010-12-03 Dimitri Glazkov <dglazkov@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « WebCore/ChangeLog ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebCore/dom/InputElement.cpp
===================================================================
--- WebCore/dom/InputElement.cpp (revision 73369)
+++ WebCore/dom/InputElement.cpp (working copy)
@@ -138,7 +138,9 @@
element->setFormControlValueMatchesRenderer(true);
- element->dispatchEvent(Event::create(eventNames().inputEvent, true, false));
+ // Input event is fired by the Node::defaultEventHandler for editable controls.
+ if (!inputElement->isTextField())
+ element->dispatchEvent(Event::create(eventNames().inputEvent, true, false));
notifyFormStateChanged(element);
}
« no previous file with comments | « WebCore/ChangeLog ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698