Title: [198020] trunk/Source/WebCore
- Revision
- 198020
- Author
- [email protected]
- Date
- 2016-03-11 07:54:35 -0800 (Fri, 11 Mar 2016)
Log Message
REGRESSION (r197956): WebContent process crashes on launch due to unrecognized selector
<http://webkit.org/b/155356>
Reviewed by Alexey Proskuryakov.
* platform/mac/ScrollableAreaMac.mm:
(WebCore::ScrollableArea::systemLanguageIsRTL): Add
-respondsToSelector: check.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (198019 => 198020)
--- trunk/Source/WebCore/ChangeLog 2016-03-11 15:10:18 UTC (rev 198019)
+++ trunk/Source/WebCore/ChangeLog 2016-03-11 15:54:35 UTC (rev 198020)
@@ -1,3 +1,14 @@
+2016-03-11 David Kilzer <[email protected]>
+
+ REGRESSION (r197956): WebContent process crashes on launch due to unrecognized selector
+ <http://webkit.org/b/155356>
+
+ Reviewed by Alexey Proskuryakov.
+
+ * platform/mac/ScrollableAreaMac.mm:
+ (WebCore::ScrollableArea::systemLanguageIsRTL): Add
+ -respondsToSelector: check.
+
2016-03-11 Youenn Fablet <[email protected]>
WTF should have a similar function as equalLettersIgnoringASCIICase to match beginning of strings
Modified: trunk/Source/WebCore/platform/mac/ScrollableAreaMac.mm (198019 => 198020)
--- trunk/Source/WebCore/platform/mac/ScrollableAreaMac.mm 2016-03-11 15:10:18 UTC (rev 198019)
+++ trunk/Source/WebCore/platform/mac/ScrollableAreaMac.mm 2016-03-11 15:54:35 UTC (rev 198020)
@@ -40,7 +40,7 @@
bool ScrollableArea::systemLanguageIsRTL()
{
#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200
- static bool result = [NSScrollerImpPair scrollerLayoutDirection] == NSUserInterfaceLayoutDirectionRightToLeft;
+ static bool result = [[NSScrollerImpPair class] respondsToSelector:@selector(scrollerLayoutDirection)] && [NSScrollerImpPair scrollerLayoutDirection] == NSUserInterfaceLayoutDirectionRightToLeft;
return result;
#else
return false;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes