Changeset 241040 in webkit


Ignore:
Timestamp:
Feb 6, 2019 12:13:15 PM (5 years ago)
Author:
achristensen@apple.com
Message:

Fix WatchOS build
https://bugs.webkit.org/show_bug.cgi?id=194353

Rubber stamped by Tim Horton and Wenson Hsieh.

  • rendering/RenderThemeIOS.mm:

(WebCore::iconForAttachment):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r241027 r241040  
     12019-02-06  Alex Christensen  <achristensen@webkit.org>
     2
     3        Fix WatchOS build
     4        https://bugs.webkit.org/show_bug.cgi?id=194353
     5
     6        Rubber stamped by Tim Horton and Wenson Hsieh.
     7
     8        * rendering/RenderThemeIOS.mm:
     9        (WebCore::iconForAttachment):
     10
    1112019-02-06  Olivier Blin  <olivier.blin@softathome.com>
    212
  • trunk/Source/WebCore/rendering/RenderThemeIOS.mm

    r240355 r241040  
    16411641static RetainPtr<UIImage> iconForAttachment(const RenderAttachment& attachment, FloatSize& size)
    16421642{
     1643    ALLOW_DEPRECATED_DECLARATIONS_BEGIN
    16431644    auto documentInteractionController = adoptNS([PAL::allocUIDocumentInteractionControllerInstance() init]);
     1645    ALLOW_DEPRECATED_DECLARATIONS_END
    16441646
    16451647    String fileName;
     
    16591661            UTI = UTIFromMIMEType(attachmentType);
    16601662
     1663#if !PLATFORM(WATCHOS)
    16611664        [documentInteractionController setUTI:static_cast<NSString *>(UTI)];
    1662     }
    1663 
     1665#endif
     1666    }
     1667
     1668    RetainPtr<UIImage> result;
     1669#if !PLATFORM(WATCHOS)
    16641670    NSArray *icons = [documentInteractionController icons];
    16651671    if (!icons.count)
    16661672        return nil;
    16671673
    1668     RetainPtr<UIImage> result = icons.lastObject;
     1674    result = icons.lastObject;
    16691675
    16701676    BOOL useHeightForClosestMatch = [result size].height > [result size].width;
     
    16831689        }
    16841690    }
    1685 
     1691#endif
    16861692    CGFloat iconAspect = [result size].width / [result size].height;
    16871693    size = largestRectWithAspectRatioInsideRect(iconAspect, FloatRect(0, 0, attachmentIconSize, attachmentIconSize)).size();
Note: See TracChangeset for help on using the changeset viewer.