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

Changeset 243484 in webkit


Ignore:
Timestamp:
Mar 25, 2019, 9:45:13 PM (7 years ago)
Author:
timothy_horton@apple.com
Message:

Remove some now-unnecessary dynamic class lookup
https://bugs.webkit.org/show_bug.cgi?id=196237

Reviewed by Simon Fraser.

Source/WebKit:

  • Shared/DocumentEditingContext.mm:

(WebKit::DocumentEditingContext::toPlatformContext):

Tools:

  • TestWebKitAPI/Tests/WebKitCocoa/DocumentEditingContext.mm:

(makeRequest):
(TEST):

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r243480 r243484  
     12019-03-25  Tim Horton  <timothy_horton@apple.com>
     2
     3        Remove some now-unnecessary dynamic class lookup
     4        https://bugs.webkit.org/show_bug.cgi?id=196237
     5
     6        Reviewed by Simon Fraser.
     7
     8        * Shared/DocumentEditingContext.mm:
     9        (WebKit::DocumentEditingContext::toPlatformContext):
     10
    1112019-03-25  Tim Horton  <timothy_horton@apple.com>
    212
  • trunk/Source/WebKit/Shared/DocumentEditingContext.mm

    r243370 r243484  
    4343{
    4444#if HAVE(UI_WK_DOCUMENT_CONTEXT)
    45     RetainPtr<UIWKDocumentContext> platformContext = adoptNS([[NSClassFromString(@"UIWKDocumentContext") alloc] init]);
     45    auto platformContext = adoptNS([[UIWKDocumentContext alloc] init]);
    4646
    4747    if (options.contains(DocumentEditingContextRequest::Options::AttributedText)) {
  • trunk/Tools/ChangeLog

    r243482 r243484  
     12019-03-25  Tim Horton  <timothy_horton@apple.com>
     2
     3        Remove some now-unnecessary dynamic class lookup
     4        https://bugs.webkit.org/show_bug.cgi?id=196237
     5
     6        Reviewed by Simon Fraser.
     7
     8        * TestWebKitAPI/Tests/WebKitCocoa/DocumentEditingContext.mm:
     9        (makeRequest):
     10        (TEST):
     11
    1122019-03-25  Fujii Hironori  <Hironori.Fujii@sony.com>
    213
  • trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/DocumentEditingContext.mm

    r243370 r243484  
    6060static UIWKDocumentRequest *makeRequest(UIWKDocumentRequestFlags flags, UITextGranularity granularity, NSInteger granularityCount, CGRect documentRect = CGRectZero, id <NSCopying> inputElementIdentifier = nil)
    6161{
    62     RetainPtr<UIWKDocumentRequest> request = adoptNS([[NSClassFromString(@"UIWKDocumentRequest") alloc] init]);
     62    auto request = adoptNS([[UIWKDocumentRequest alloc] init]);
    6363    [request setFlags:flags];
    6464    [request setSurroundingGranularity:granularity];
     
    118118TEST(WebKit, DocumentEditingContext)
    119119{
    120     if (!NSClassFromString(@"UIWKDocumentRequest"))
    121         return;
    122 
    123120    RetainPtr<TestWKWebView> webView = adoptNS([[TestWKWebView alloc] initWithFrame:NSMakeRect(0, 0, 800, 600)]);
    124121
Note: See TracChangeset for help on using the changeset viewer.