Bug 74998

Summary: Change the item type of Document::m_formElementsWithState from Element* to HTMLFormControlElementWithState*
Product: WebKit Reporter: Kent Tamura <tkent>
Component: FormsAssignee: Kent Tamura <tkent>
Status: RESOLVED FIXED    
Severity: Minor CC: darin, dglazkov
Priority: P3    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch kling: review+

Kent Tamura
Reported 2011-12-20 23:58:58 PST
Pointed out by Darin Adler in https://bugs.webkit.org/show_bug.cgi?id=74909#c4 > - Document::m_formElementsWithState should change to hold HTMLFormControlElement* instead of Element*, and all the functions should likewise change. I think the looser type is a remnant of WML support.
Attachments
Patch (8.55 KB, patch)
2011-12-21 00:14 PST, Kent Tamura
kling: review+
Kent Tamura
Comment 1 2011-12-21 00:14:50 PST
Andreas Kling
Comment 2 2011-12-21 10:47:43 PST
Comment on attachment 120155 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=120155&action=review Love it! > Source/WebCore/dom/Document.cpp:4319 > String value; > if (!elementWithState->shouldSaveAndRestoreFormControlState()) > continue; Unrelated to this patch, but we should move "String value;" below the continue to avoid creating the empty string unnecessarily.
Kent Tamura
Comment 3 2011-12-21 20:39:36 PST
Thank you for reviewing. I'll move "String value" and land the patch. (In reply to comment #2) > > Source/WebCore/dom/Document.cpp:4319 > > String value; > > if (!elementWithState->shouldSaveAndRestoreFormControlState()) > > continue; > > Unrelated to this patch, but we should move "String value;" below the continue to avoid creating the empty string unnecessarily.
Kent Tamura
Comment 4 2011-12-21 20:58:05 PST
Note You need to log in before you can comment on or make changes to this bug.