Make an efficient implementation of KURL::setPort().
Created attachment 169746 [details] Patch
Comment on attachment 169746 [details] Patch This feels a bit oddly specific to port. Maybe you plan to generalize it to replacing arbitrary components in future patches?
(In reply to comment #2) > (From update of attachment 169746 [details]) > This feels a bit oddly specific to port. Maybe you plan to generalize it to replacing arbitrary components in future patches? Yep, that's the idea. :) First encode the input for any component, and pass it to a generalized version of this code. I started with port since the input is dead simple.
Committed r132261: <http://trac.webkit.org/changeset/132261>