Title: [208964] trunk/Source/WTF
- Revision
- 208964
- Author
- [email protected]
- Date
- 2016-11-22 10:35:03 -0800 (Tue, 22 Nov 2016)
Log Message
Quick follow-up to previous patch.
* wtf/text/TextBreakIterator.cpp:
(WTF::numCharactersInGraphemeClusters): Removed incorrect assertion.
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (208963 => 208964)
--- trunk/Source/WTF/ChangeLog 2016-11-22 17:16:02 UTC (rev 208963)
+++ trunk/Source/WTF/ChangeLog 2016-11-22 18:35:03 UTC (rev 208964)
@@ -1,5 +1,12 @@
2016-11-22 Darin Adler <[email protected]>
+ Quick follow-up to previous patch.
+
+ * wtf/text/TextBreakIterator.cpp:
+ (WTF::numCharactersInGraphemeClusters): Removed incorrect assertion.
+
+2016-11-22 Darin Adler <[email protected]>
+
Make normal case fast in the input element limitString function
https://bugs.webkit.org/show_bug.cgi?id=165023
Modified: trunk/Source/WTF/wtf/text/TextBreakIterator.cpp (208963 => 208964)
--- trunk/Source/WTF/wtf/text/TextBreakIterator.cpp 2016-11-22 17:16:02 UTC (rev 208963)
+++ trunk/Source/WTF/wtf/text/TextBreakIterator.cpp 2016-11-22 18:35:03 UTC (rev 208964)
@@ -948,10 +948,8 @@
}
for (unsigned i = 0; i < numGraphemeClusters; ++i) {
- if (textBreakNext(iterator) == TextBreakDone) {
- ASSERT_NOT_REACHED();
+ if (textBreakNext(iterator) == TextBreakDone)
return stringLength;
- }
}
return textBreakCurrent(iterator);
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes