-
benjamin@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=99898 Reviewed by Adam Barth. Source/WebCore: * platform/KURLWTFURL.cpp: (WebCore::KURL::setPort): Source/WTF: Add an efficient implementation for remplacing the port component in an URL. This will be the base for replacing other components efficiently. The testing is covered by fast/dom/HTMLAnchorElement/set-href-attribute-port.html * wtf/url/api/ParsedURL.cpp: (WTF::generateNewSpecWithPort): (WTF::replacePortWithString): (WTF::ParsedURL::replacePort): * wtf/url/api/ParsedURL.h: (ParsedURL): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132261 268f45cc-cd09-0410-ab3c-d52691b4dbfc
61c5ecff