Summary: | Change the serialization format of form control state to make the code simple | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Kent Tamura <tkent> | ||||||||||||
Component: | Forms | Assignee: | Kent Tamura <tkent> | ||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||
Severity: | Minor | CC: | darin, eric, leviw, morrita, webkit.review.bot | ||||||||||||
Priority: | P3 | ||||||||||||||
Version: | 528+ (Nightly build) | ||||||||||||||
Hardware: | Unspecified | ||||||||||||||
OS: | Unspecified | ||||||||||||||
Bug Depends on: | 89628 | ||||||||||||||
Bug Blocks: | 23346 | ||||||||||||||
Attachments: |
|
Description
Kent Tamura
2012-06-24 20:20:35 PDT
Created attachment 149229 [details]
Patch
Created attachment 149230 [details]
Patch 2
Remove TAB
Comment on attachment 149230 [details] Patch 2 View in context: https://bugs.webkit.org/attachment.cgi?id=149230&action=review > Source/WebCore/html/FormController.cpp:61 > + } Don't we have any escape function? If so, let's use it. Or let's define one. > Source/WebCore/html/FormController.cpp:95 > + } Ditto. Comment on attachment 149230 [details] Patch 2 View in context: https://bugs.webkit.org/attachment.cgi?id=149230&action=review >> Source/WebCore/html/FormController.cpp:61 >> + } > > Don't we have any escape function? If so, let's use it. Or let's define one. I couldn't find a generic escaping function. It's nice to have one because we have a similar code in CalendarPickerElement.cpp. >> Source/WebCore/html/FormController.cpp:95 >> + } > > Ditto. I have no good idea of unescaping function interface because we can't find delimiters of escaped strings without parsing. Created attachment 149246 [details]
Patch 3
Add an escape function
Created attachment 149248 [details]
Patch 4
Comment on attachment 149248 [details] Patch 4 Clearing flags on attachment: 149248 Committed r121145: <http://trac.webkit.org/changeset/121145> All reviewed patches have been landed. Closing bug. This seems like a step backwards to me. Serializing and then decoding the object is extra work. There is more code here than before. (In reply to comment #9) > This seems like a step backwards to me. Serializing and then decoding the object is extra work. There is more code here than before. ok, I'll roll it out. I don't have strong preference for this. Reverted r121145 for reason: Had an objection for the change. Committed r121207: <http://trac.webkit.org/changeset/121207> Maybe I came on too strong. I liked the new helper function for appending an escaped string. It’s also good to have all the state wrapped up in a single object rather than a confusing combination of a vector and a size. But I do want us to keep serializing and then re-parsing to a minimum. Reopening to attach new patch. Created attachment 157818 [details]
Patch
Comment on attachment 157818 [details]
Patch
Whoops!! Wrong bug number! Sorry for the noise.
Reopening to attach new patch. |