Changeset 199142 in webkit
- Timestamp:
- Apr 6, 2016 7:07:26 PM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r199130 r199142 1 2016-04-06 Gyuyoung Kim <gyuyoung.kim@webkit.org> 2 3 Remove duplicated parsePortFromStringPosition() 4 https://bugs.webkit.org/show_bug.cgi?id=156289 5 6 Reviewed by Simon Fraser. 7 8 Same parsePortFromStringPosition() functions have been defined in both URLUtils.h and HTMLAnchorElement.cpp. 9 Remove duplicated one in HTMLAnchorElement.cpp. 10 11 No new tests, no behavior change. 12 13 * html/HTMLAnchorElement.cpp: 14 (WebCore::parsePortFromStringPosition): Deleted. 15 1 16 2016-04-06 Simon Fraser <simon.fraser@apple.com> 2 17 -
trunk/Source/WebCore/html/HTMLAnchorElement.cpp
r198893 r199142 47 47 #include "SecurityPolicy.h" 48 48 #include "Settings.h" 49 #include "URLUtils.h" 49 50 #include <wtf/text/StringBuilder.h> 50 51 … … 75 76 { 76 77 clearRootEditableElementForSelectionOnMouseDown(); 77 }78 79 // This function does not allow leading spaces before the port number.80 static unsigned parsePortFromStringPosition(const String& value, unsigned portStart, unsigned& portEnd)81 {82 portEnd = portStart;83 while (isASCIIDigit(value[portEnd]))84 ++portEnd;85 return value.substring(portStart, portEnd - portStart).toUInt();86 78 } 87 79
Note: See TracChangeset
for help on using the changeset viewer.