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

Unified Diff: Source/WebCore/dom/Document.cpp

Issue 12670015: Revert 146672 "Add client callbacks to notify of changes of asso..." (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1453/
Patch Set: Created 7 years, 9 months 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 | « Source/WebCore/dom/Document.h ('k') | Source/WebCore/html/FormAssociatedElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/dom/Document.cpp
===================================================================
--- Source/WebCore/dom/Document.cpp (revision 146918)
+++ Source/WebCore/dom/Document.cpp (working copy)
@@ -496,7 +496,6 @@
#if ENABLE(FONT_LOAD_EVENTS)
, m_fontloader(0)
#endif
- , m_didAssociateFormControlsTimer(this, &Document::didAssociateFormControlsTimerFired)
{
m_printing = false;
m_paginatedForScreen = false;
@@ -6160,26 +6159,4 @@
}
#endif
-void Document::didAssociateFormControl(Element* element)
-{
- if (!frame() || !frame()->page() || !frame()->page()->chrome()->client()->shouldNotifyOnFormChanges())
- return;
- m_associatedFormControls.add(element);
- if (!m_didAssociateFormControlsTimer.isActive())
- m_didAssociateFormControlsTimer.startOneShot(0);
-}
-
-void Document::didAssociateFormControlsTimerFired(Timer<Document>* timer)
-{
- ASSERT_UNUSED(timer, timer == &m_didAssociateFormControlsTimer);
- if (!frame() || !frame()->page())
- return;
-
- Vector<Element*> associatedFormControls;
- copyToVector(m_associatedFormControls, associatedFormControls);
-
- frame()->page()->chrome()->client()->didAssociateFormControls(associatedFormControls);
- m_associatedFormControls.clear();
-}
-
} // namespace WebCore
« no previous file with comments | « Source/WebCore/dom/Document.h ('k') | Source/WebCore/html/FormAssociatedElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698