Title: [208965] trunk/Source/WTF
- Revision
- 208965
- Author
- [email protected]
- Date
- 2016-11-22 10:43:53 -0800 (Tue, 22 Nov 2016)
Log Message
One more tiny bit of follow-up.
* wtf/text/TextBreakIterator.cpp:
(WTF::numCharactersInGraphemeClusters): Removed unneeded always-true check.
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (208964 => 208965)
--- trunk/Source/WTF/ChangeLog 2016-11-22 18:35:03 UTC (rev 208964)
+++ trunk/Source/WTF/ChangeLog 2016-11-22 18:43:53 UTC (rev 208965)
@@ -1,5 +1,12 @@
2016-11-22 Darin Adler <[email protected]>
+ One more tiny bit of follow-up.
+
+ * wtf/text/TextBreakIterator.cpp:
+ (WTF::numCharactersInGraphemeClusters): Removed unneeded always-true check.
+
+2016-11-22 Darin Adler <[email protected]>
+
Quick follow-up to previous patch.
* wtf/text/TextBreakIterator.cpp:
Modified: trunk/Source/WTF/wtf/text/TextBreakIterator.cpp (208964 => 208965)
--- trunk/Source/WTF/wtf/text/TextBreakIterator.cpp 2016-11-22 18:35:03 UTC (rev 208964)
+++ trunk/Source/WTF/wtf/text/TextBreakIterator.cpp 2016-11-22 18:43:53 UTC (rev 208965)
@@ -938,7 +938,7 @@
unsigned i, j;
for (i = 0, j = 0; i < numGraphemeClusters && j + 1 < stringLength; ++i, ++j)
j += characters[j] == '\r' && characters[j + 1] == '\n';
- return j + (i < numGraphemeClusters && j < stringLength);
+ return j + (i < numGraphemeClusters);
}
NonSharedCharacterBreakIterator iterator { string };
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes