Update the name of a Mail class that we hardcode
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Nov 2015 20:50:52 +0000 (20:50 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Nov 2015 20:50:52 +0000 (20:50 +0000)
https://bugs.webkit.org/show_bug.cgi?id=150879
<rdar://problem/23384627>

Reviewed by Alexey Proskuryakov.

* editing/cocoa/HTMLConverter.mm:
(_WebMessageDocumentClass):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@192032 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/editing/cocoa/HTMLConverter.mm

index f56b488..f15201c 100644 (file)
@@ -1,3 +1,14 @@
+2015-11-04  Tim Horton  <timothy_horton@apple.com>
+
+        Update the name of a Mail class that we hardcode
+        https://bugs.webkit.org/show_bug.cgi?id=150879
+        <rdar://problem/23384627>
+
+        Reviewed by Alexey Proskuryakov.
+
+        * editing/cocoa/HTMLConverter.mm:
+        (_WebMessageDocumentClass):
+
 2015-11-04  Eric Carlson  <eric.carlson@apple.com>
 
         [MediaStream] A RealtimeMediaSource should begin producing data automatically
index a9926e9..d3d465f 100644 (file)
@@ -1372,7 +1372,11 @@ static Class _WebMessageDocumentClass()
     static BOOL lookedUpClass = NO;
     if (!lookedUpClass) {
         // If the class is not there, we don't want to try again
+#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200
+        _WebMessageDocumentClass = objc_lookUpClass("WebMessageDocument");
+#else
         _WebMessageDocumentClass = objc_lookUpClass("MFWebMessageDocument");
+#endif
         if (_WebMessageDocumentClass && ![_WebMessageDocumentClass respondsToSelector:@selector(document:attachment:forURL:)])
             _WebMessageDocumentClass = Nil;
         lookedUpClass = YES;