⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 211117 in webkit


Ignore:
Timestamp:
Jan 24, 2017, 3:29:33 PM (10 years ago)
Author:
matthew_hanson@apple.com
Message:

Merge r211086. rdar://problem/29948645

Location:
branches/safari-603-branch
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-603-branch/Source/WebKit2/ChangeLog

    r211104 r211117  
     12017-01-24  Matthew Hanson  <matthew_hanson@apple.com>
     2
     3        Merge r211086. rdar://problem/29948645
     4
     5    2017-01-23  Anders Carlsson  <andersca@apple.com>
     6
     7            The Score Esports crashes on launch
     8            https://bugs.webkit.org/show_bug.cgi?id=167338
     9            rdar://problem/29948645
     10
     11            Reviewed by Dan Bernstein.
     12
     13            * Shared/Cocoa/WKObject.mm:
     14            (+[WKObject conformsToProtocol:]):
     15            Add a class method implementation in case an app ends up calling +[WKObject conformsToProtocol:] for some reason.
     16
    1172017-01-24  Matthew Hanson  <matthew_hanson@apple.com>
    218
  • branches/safari-603-branch/Source/WebKit2/Shared/Cocoa/WKObject.mm

    r204905 r211117  
    154154}
    155155
     156+ (BOOL)conformsToProtocol:(Protocol *)protocol
     157{
     158    if (!protocol)
     159        return NO;
     160
     161    for (Class cls = self; cls; cls = class_getSuperclass(cls)) {
     162        if (class_conformsToProtocol(cls, protocol))
     163            return YES;
     164    }
     165
     166    return NO;
     167}
     168
    156169- (BOOL)conformsToProtocol:(Protocol *)protocol
    157170{
  • branches/safari-603-branch/Tools/ChangeLog

    r211107 r211117  
     12017-01-24  Matthew Hanson  <matthew_hanson@apple.com>
     2
     3        Merge r211086. rdar://problem/29948645
     4
     5    2017-01-23  Anders Carlsson  <andersca@apple.com>
     6
     7            The Score Esports crashes on launch
     8            https://bugs.webkit.org/show_bug.cgi?id=167338
     9            rdar://problem/29948645
     10
     11            Reviewed by Dan Bernstein.
     12
     13            * TestWebKitAPI/Tests/WebKit2Cocoa/WKObject.mm:
     14            (TestWebKitAPI::TEST):
     15            Add a test.
     16
    1172017-01-24  Matthew Hanson  <matthew_hanson@apple.com>
    218
  • branches/safari-603-branch/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/WKObject.mm

    r204565 r211117  
    4949}
    5050
     51TEST(WebKit2, WKObject_classMethods)
     52{
     53    Class wkObjectClass = NSClassFromString(@"WKObject");
     54    ASSERT_NE((Class)0, wkObjectClass);
     55
     56    ASSERT_TRUE([wkObjectClass conformsToProtocol:@protocol(NSObject)]);
     57}
     58
    5159} // namespace TestWebKitAPI
    5260
Note: See TracChangeset for help on using the changeset viewer.