Changeset 260676 in webkit


Ignore:
Timestamp:
Apr 24, 2020 3:41:38 PM (4 years ago)
Author:
Megan Gardner
Message:

Make LEGACY_PDF_SUPPORT feature flag.
https://bugs.webkit.org/show_bug.cgi?id=210868
<rdar://problem/62199847>

Reviewed by Tim Horton.

Source/WebKitLegacy/mac:

  • WebView/WebFrameView.mm:

(+[WebFrameView _viewTypesAllowImageTypeOmission:]):

  • WebView/WebView.mm:

Source/WTF:

  • wtf/PlatformHave.h:
Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r260650 r260676  
     12020-04-24  Megan Gardner  <megan_gardner@apple.com>
     2
     3        Make LEGACY_PDF_SUPPORT feature flag.
     4        https://bugs.webkit.org/show_bug.cgi?id=210868
     5        <rdar://problem/62199847>
     6
     7        Reviewed by Tim Horton.
     8
     9        * wtf/PlatformHave.h:
     10
    1112020-04-24  Youenn Fablet  <youenn@apple.com> and Luming Yin <luming_yin@apple.com>
    212
  • trunk/Source/WTF/wtf/PlatformHave.h

    r260650 r260676  
    638638#endif
    639639
     640#if PLATFORM(IOS_FAMILY) || PLATFORM(MAC)
     641#define HAVE_LEGACY_PDF_SUPPORT 1
     642#endif
     643
    640644#if PLATFORM(IOS)
    641645#define HAVE_AVOBSERVATIONCONTROLLER 1
  • trunk/Source/WebKitLegacy/mac/ChangeLog

    r260662 r260676  
     12020-04-24  Megan Gardner  <megan_gardner@apple.com>
     2
     3        Make LEGACY_PDF_SUPPORT feature flag.
     4        https://bugs.webkit.org/show_bug.cgi?id=210868
     5        <rdar://problem/62199847>
     6
     7        Reviewed by Tim Horton.
     8
     9        * WebView/WebFrameView.mm:
     10        (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
     11        * WebView/WebView.mm:
     12
    1132020-04-24  Antoine Quint  <graouts@apple.com>
    214
  • trunk/Source/WebKitLegacy/mac/WebView/WebFrameView.mm

    r260485 r260676  
    263263#define WebPDFView ([WebView _getPDFViewClass])
    264264#endif
    265 #if !PLATFORM(MACCATALYST)
     265#if HAVE(LEGACY_PDF_SUPPORT)
    266266            addTypesFromClass(viewTypes, [WebPDFView class], [WebPDFView supportedMIMETypes]);
    267267#endif
  • trunk/Source/WebKitLegacy/mac/WebView/WebView.mm

    r260662 r260676  
    20702070#define WebPDFView ([WebView _getPDFViewClass])
    20712071#endif
    2072 #if PLATFORM(MACCATALYST)
     2072#if !HAVE(LEGACY_PDF_SUPPORT)
    20732073    if (!viewClass || !repClass) {
    20742074#else
Note: See TracChangeset for help on using the changeset viewer.