Changeset 224048 in webkit


Ignore:
Timestamp:
Oct 26, 2017 2:07:01 PM (6 years ago)
Author:
mitz@apple.com
Message:

Account for Mail’s WebMessageDocument class being renamed
https://bugs.webkit.org/show_bug.cgi?id=178881

Reviewed by Sam Weinig.

  • editing/cocoa/HTMLConverter.mm:

(_WebMessageDocumentClass): Look up the class by its new name. No longer look it up by the

old old name, because TOT WebKit isn’t going to be used by versions of Mail that have that name.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r224045 r224048  
     12017-10-26  Dan Bernstein  <mitz@apple.com>
     2
     3        Account for Mail’s WebMessageDocument class being renamed
     4        https://bugs.webkit.org/show_bug.cgi?id=178881
     5
     6        Reviewed by Sam Weinig.
     7
     8        * editing/cocoa/HTMLConverter.mm:
     9        (_WebMessageDocumentClass): Look up the class by its new name. No longer look it up by the
     10          old old name, because TOT WebKit isn’t going to be used by versions of Mail that have that name.
     11
    1122017-10-26  Antoine Quint  <graouts@apple.com>
    213
  • trunk/Source/WebCore/editing/cocoa/HTMLConverter.mm

    r223476 r224048  
    13561356    if (!lookedUpClass) {
    13571357        // If the class is not there, we don't want to try again
    1358 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200
    1359         _WebMessageDocumentClass = objc_lookUpClass("WebMessageDocument");
    1360 #else
    1361         _WebMessageDocumentClass = objc_lookUpClass("MFWebMessageDocument");
     1358#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400
     1359        _WebMessageDocumentClass = objc_lookUpClass("EditableWebMessageDocument");
    13621360#endif
     1361        if (!_WebMessageDocumentClass)
     1362            _WebMessageDocumentClass = objc_lookUpClass("WebMessageDocument");
     1363
    13631364        if (_WebMessageDocumentClass && ![_WebMessageDocumentClass respondsToSelector:@selector(document:attachment:forURL:)])
    13641365            _WebMessageDocumentClass = Nil;
Note: See TracChangeset for help on using the changeset viewer.