Speculative build fix for ENABLE(TELEPHONE_NUMBER_DETECTION) after r165724.
authorjberlin@webkit.org <jberlin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Mar 2014 15:38:30 +0000 (15:38 +0000)
committerjberlin@webkit.org <jberlin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Mar 2014 15:38:30 +0000 (15:38 +0000)
* html/parser/HTMLTreeBuilder.cpp:
(WebCore::HTMLTreeBuilder::linkifyPhoneNumbers):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@165734 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/html/parser/HTMLTreeBuilder.cpp

index 166b1cc..e2eb95a 100644 (file)
@@ -1,3 +1,10 @@
+2014-03-17  Jessie Berlin  <jberlin@apple.com>
+
+        Speculative build fix for ENABLE(TELEPHONE_NUMBER_DETECTION) after r165724.
+
+        * html/parser/HTMLTreeBuilder.cpp:
+        (WebCore::HTMLTreeBuilder::linkifyPhoneNumbers):
+
 2014-03-17  Zan Dobersek  <zdobersek@igalia.com>
 
         Only supplement Page with UserMediaController once
index b706fe6..0e4ebfb 100644 (file)
@@ -2338,7 +2338,7 @@ void HTMLTreeBuilder::linkifyPhoneNumbers(const String& string)
     int relativeStartPosition = 0;
     int relativeEndPosition = 0;
 
-    auto characters = string.upconvertedCharacters();
+    auto characters = StringView(string).upconvertedCharacters();
 
     // While there's a phone number in the rest of the string...
     while (scannerPosition < length && TelephoneNumberDetector::find(&characters[scannerPosition], length - scannerPosition, &relativeStartPosition, &relativeEndPosition)) {