Changeset 241040 in webkit
- Timestamp:
- Feb 6, 2019 12:13:15 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r241027 r241040 1 2019-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 1 11 2019-02-06 Olivier Blin <olivier.blin@softathome.com> 2 12 -
trunk/Source/WebCore/rendering/RenderThemeIOS.mm
r240355 r241040 1641 1641 static RetainPtr<UIImage> iconForAttachment(const RenderAttachment& attachment, FloatSize& size) 1642 1642 { 1643 ALLOW_DEPRECATED_DECLARATIONS_BEGIN 1643 1644 auto documentInteractionController = adoptNS([PAL::allocUIDocumentInteractionControllerInstance() init]); 1645 ALLOW_DEPRECATED_DECLARATIONS_END 1644 1646 1645 1647 String fileName; … … 1659 1661 UTI = UTIFromMIMEType(attachmentType); 1660 1662 1663 #if !PLATFORM(WATCHOS) 1661 1664 [documentInteractionController setUTI:static_cast<NSString *>(UTI)]; 1662 } 1663 1665 #endif 1666 } 1667 1668 RetainPtr<UIImage> result; 1669 #if !PLATFORM(WATCHOS) 1664 1670 NSArray *icons = [documentInteractionController icons]; 1665 1671 if (!icons.count) 1666 1672 return nil; 1667 1673 1668 RetainPtr<UIImage>result = icons.lastObject;1674 result = icons.lastObject; 1669 1675 1670 1676 BOOL useHeightForClosestMatch = [result size].height > [result size].width; … … 1683 1689 } 1684 1690 } 1685 1691 #endif 1686 1692 CGFloat iconAspect = [result size].width / [result size].height; 1687 1693 size = largestRectWithAspectRatioInsideRect(iconAspect, FloatRect(0, 0, attachmentIconSize, attachmentIconSize)).size();
Note: See TracChangeset
for help on using the changeset viewer.