+2014-08-31 Tim Horton <timothy_horton@apple.com>
+
+ Remove unused ARMv6-specific #if branches in WebCore::canHyphenate
+ https://bugs.webkit.org/show_bug.cgi?id=136420
+
+ Reviewed by Dan Bernstein.
+
+ * platform/text/cf/HyphenationCF.cpp:
+ (WebCore::AtomicStringKeyedMRUCache<RetainPtr<CFLocaleRef>>::createValueForNullKey):
+ Use kCFAllocatorDefault instead of 0.
+
+ (WebCore::canHyphenate):
+ Remove ARMv6-specific code.
+
2014-08-31 Tim Horton <timothy_horton@apple.com>
Remove unnecessary (and unnecessarily iOS-specific) setStrokeAndFillColor
{
// CF hyphenation functions use locale (regional formats) language, which doesn't necessarily match primary UI language,
// so we can't use default locale here. See <rdar://problem/14897664>.
- RetainPtr<CFLocaleRef> locale = adoptCF(CFLocaleCreate(0, defaultLanguage().createCFString().get()));
+ RetainPtr<CFLocaleRef> locale = adoptCF(CFLocaleCreate(kCFAllocatorDefault, defaultLanguage().createCFString().get()));
return CFStringIsHyphenationAvailableForLocale(locale.get()) ? locale : 0;
}
bool canHyphenate(const AtomicString& localeIdentifier)
{
-#if !PLATFORM(IOS)
return cfLocaleCache().get(localeIdentifier);
-#else
-#if !(defined(WTF_ARM_ARCH_VERSION) && WTF_ARM_ARCH_VERSION == 6)
- return cfLocaleCache().get(localeIdentifier);
-#else
- // Hyphenation is not available on devices with ARMv6 processors. See <rdar://8352570>.
- UNUSED_PARAM(localeIdentifier);
- return false;
-#endif
-#endif // PLATFORM(IOS)
}
size_t lastHyphenLocation(StringView text, size_t beforeIndex, const AtomicString& localeIdentifier)