[webkit-changes] [WebKit/WebKit] 8694a0: MIMETypeRegistry::isPostScriptMIMEType() is no lon...

Abrar Rahman Protyasha noreply at github.com
Wed May 8 13:01:01 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8694a007981ee2d1fc99680947127b6596d9a891
      https://github.com/WebKit/WebKit/commit/8694a007981ee2d1fc99680947127b6596d9a891
  Author: Abrar Rahman Protyasha <a_protyasha at apple.com>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M Source/WebCore/loader/cache/CachedImage.cpp
    M Source/WebCore/loader/cache/CachedImage.h
    M Source/WebCore/platform/MIMETypeRegistry.cpp
    M Source/WebCore/platform/MIMETypeRegistry.h
    M Source/WebCore/platform/graphics/Image.cpp
    M Source/WebCore/platform/graphics/Image.h

  Log Message:
  -----------
  MIMETypeRegistry::isPostScriptMIMEType() is no longer a relevant question
https://bugs.webkit.org/show_bug.cgi?id=273858
rdar://127706013

Reviewed by Tim Horton.

After 278471 at main, the only callers of isPostScriptMIMEType() are
Image::create() and CachedImage::updateBufferInternal(), both of which
use the check to convert PostScript data to PDF data. Since we no longer
ship this translation capability, we no longer need to check for the
presence of a PostScript resource.

* Source/WebCore/loader/cache/CachedImage.cpp:
(WebCore::CachedImage::updateBufferInternal):
(WebCore::CachedImage::isPostScriptResource const): Deleted.
* Source/WebCore/loader/cache/CachedImage.h:
* Source/WebCore/platform/MIMETypeRegistry.cpp:
(WebCore::MIMETypeRegistry::isPostScriptMIMEType): Deleted.
* Source/WebCore/platform/MIMETypeRegistry.h:
* Source/WebCore/platform/graphics/Image.cpp:
(WebCore::Image::create):
(WebCore::Image::isPostScriptResource): Deleted.
* Source/WebCore/platform/graphics/Image.h:

Canonical link: https://commits.webkit.org/278520@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list