Title: [199142] trunk/Source/WebCore
Revision
199142
Author
[email protected]
Date
2016-04-06 19:07:26 -0700 (Wed, 06 Apr 2016)

Log Message

Remove duplicated parsePortFromStringPosition()
https://bugs.webkit.org/show_bug.cgi?id=156289

Reviewed by Simon Fraser.

Same parsePortFromStringPosition() functions have been defined in both URLUtils.h and HTMLAnchorElement.cpp.
Remove duplicated one in HTMLAnchorElement.cpp.

No new tests, no behavior change.

* html/HTMLAnchorElement.cpp:
(WebCore::parsePortFromStringPosition): Deleted.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (199141 => 199142)


--- trunk/Source/WebCore/ChangeLog	2016-04-07 02:05:22 UTC (rev 199141)
+++ trunk/Source/WebCore/ChangeLog	2016-04-07 02:07:26 UTC (rev 199142)
@@ -1,3 +1,18 @@
+2016-04-06  Gyuyoung Kim  <[email protected]>
+
+        Remove duplicated parsePortFromStringPosition()
+        https://bugs.webkit.org/show_bug.cgi?id=156289
+
+        Reviewed by Simon Fraser.
+
+        Same parsePortFromStringPosition() functions have been defined in both URLUtils.h and HTMLAnchorElement.cpp.
+        Remove duplicated one in HTMLAnchorElement.cpp.
+
+        No new tests, no behavior change.
+
+        * html/HTMLAnchorElement.cpp:
+        (WebCore::parsePortFromStringPosition): Deleted.
+
 2016-04-06  Simon Fraser  <[email protected]>
 
         Page tiles are missing when graphics acceleration is unavailable

Modified: trunk/Source/WebCore/html/HTMLAnchorElement.cpp (199141 => 199142)


--- trunk/Source/WebCore/html/HTMLAnchorElement.cpp	2016-04-07 02:05:22 UTC (rev 199141)
+++ trunk/Source/WebCore/html/HTMLAnchorElement.cpp	2016-04-07 02:07:26 UTC (rev 199142)
@@ -46,6 +46,7 @@
 #include "SecurityOrigin.h"
 #include "SecurityPolicy.h"
 #include "Settings.h"
+#include "URLUtils.h"
 #include <wtf/text/StringBuilder.h>
 
 namespace WebCore {
@@ -76,15 +77,6 @@
     clearRootEditableElementForSelectionOnMouseDown();
 }
 
-// This function does not allow leading spaces before the port number.
-static unsigned parsePortFromStringPosition(const String& value, unsigned portStart, unsigned& portEnd)
-{
-    portEnd = portStart;
-    while (isASCIIDigit(value[portEnd]))
-        ++portEnd;
-    return value.substring(portStart, portEnd - portStart).toUInt();
-}
-
 bool HTMLAnchorElement::supportsFocus() const
 {
     if (hasEditableStyle())
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to