Title: [122539] trunk/Source/WebCore
- Revision
- 122539
- Author
- [email protected]
- Date
- 2012-07-12 21:31:56 -0700 (Thu, 12 Jul 2012)
Log Message
Pass an option flag to CFStringGetHyphenationLocationBeforeIndex() that tells it to not
terminate the search at the last word boundary before the given index.
Reviewed by Adele Peterson.
No test, because the current version of Core Foundation ignores the options parameter.
* platform/text/cf/HyphenationCF.cpp:
(WebCore::lastHyphenLocation): Changed the options parameter from 0 to 1.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (122538 => 122539)
--- trunk/Source/WebCore/ChangeLog 2012-07-13 02:29:29 UTC (rev 122538)
+++ trunk/Source/WebCore/ChangeLog 2012-07-13 04:31:56 UTC (rev 122539)
@@ -1,3 +1,15 @@
+2012-07-12 Dan Bernstein <[email protected]>
+
+ Pass an option flag to CFStringGetHyphenationLocationBeforeIndex() that tells it to not
+ terminate the search at the last word boundary before the given index.
+
+ Reviewed by Adele Peterson.
+
+ No test, because the current version of Core Foundation ignores the options parameter.
+
+ * platform/text/cf/HyphenationCF.cpp:
+ (WebCore::lastHyphenLocation): Changed the options parameter from 0 to 1.
+
2012-07-12 Eric Seidel <[email protected]>
Incorrect behaviour calling Range setStart or setEnd with boundary in different document
Modified: trunk/Source/WebCore/platform/text/cf/HyphenationCF.cpp (122538 => 122539)
--- trunk/Source/WebCore/platform/text/cf/HyphenationCF.cpp 2012-07-13 02:29:29 UTC (rev 122538)
+++ trunk/Source/WebCore/platform/text/cf/HyphenationCF.cpp 2012-07-13 04:31:56 UTC (rev 122539)
@@ -70,7 +70,8 @@
RetainPtr<CFLocaleRef> locale = cfLocaleCache().get(localeIdentifier);
ASSERT(locale);
- CFIndex result = CFStringGetHyphenationLocationBeforeIndex(string.get(), beforeIndex, CFRangeMake(0, length), 0, locale.get(), 0);
+ CFOptionFlags searchAcrossWordBoundaries = 1;
+ CFIndex result = CFStringGetHyphenationLocationBeforeIndex(string.get(), beforeIndex, CFRangeMake(0, length), searchAcrossWordBoundaries, locale.get(), 0);
return result == kCFNotFound ? 0 : result;
}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes