diff options
Diffstat (limited to 'Source/WebCore/html/HTMLFormControlElementWithState.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLFormControlElementWithState.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/WebCore/html/HTMLFormControlElementWithState.cpp b/Source/WebCore/html/HTMLFormControlElementWithState.cpp index 57b238ec5..d16577f0a 100644 --- a/Source/WebCore/html/HTMLFormControlElementWithState.cpp +++ b/Source/WebCore/html/HTMLFormControlElementWithState.cpp @@ -64,6 +64,16 @@ bool HTMLFormControlElementWithState::shouldAutocomplete() const return form()->shouldAutocomplete(); } +void HTMLFormControlElementWithState::notifyFormStateChanged() +{ + Frame* frame = document().frame(); + if (!frame) + return; + + if (Page* page = frame->page()) + page->chrome().client().formStateDidChange(this); +} + bool HTMLFormControlElementWithState::shouldSaveAndRestoreFormControlState() const { // We don't save/restore control state in a form with autocomplete=off. |