Title: [289390] branches/safari-613.1.16.1-branch/Source/WebKit
Revision
289390
Author
[email protected]
Date
2022-02-08 10:55:38 -0800 (Tue, 08 Feb 2022)

Log Message

Cherry-pick r288825. rdar://problem/88172449

    [WP] Remove PostScript conversion code
    https://bugs.webkit.org/show_bug.cgi?id=235892
    <rdar://88172449>

    Reviewed by Brent Fulgham.

    The WebContent process no longer has access to the PostScript conversion service, so there is no need to keep this code.

    * WebProcess/Plugins/PDF/PDFPlugin.h:
    * WebProcess/Plugins/PDF/PDFPlugin.mm:
    (WebKit::PDFPlugin::streamDidFinishLoading):
    (WebKit::PDFPlugin::manualStreamDidFinishLoading):
    (WebKit::PDFPlugin::convertPostScriptDataIfNeeded): Deleted.

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288825 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-613.1.16.1-branch/Source/WebKit/ChangeLog (289389 => 289390)


--- branches/safari-613.1.16.1-branch/Source/WebKit/ChangeLog	2022-02-08 18:55:35 UTC (rev 289389)
+++ branches/safari-613.1.16.1-branch/Source/WebKit/ChangeLog	2022-02-08 18:55:38 UTC (rev 289390)
@@ -1,5 +1,42 @@
 2022-02-08  Alan Coon  <[email protected]>
 
+        Cherry-pick r288825. rdar://problem/88172449
+
+    [WP] Remove PostScript conversion code
+    https://bugs.webkit.org/show_bug.cgi?id=235892
+    <rdar://88172449>
+    
+    Reviewed by Brent Fulgham.
+    
+    The WebContent process no longer has access to the PostScript conversion service, so there is no need to keep this code.
+    
+    * WebProcess/Plugins/PDF/PDFPlugin.h:
+    * WebProcess/Plugins/PDF/PDFPlugin.mm:
+    (WebKit::PDFPlugin::streamDidFinishLoading):
+    (WebKit::PDFPlugin::manualStreamDidFinishLoading):
+    (WebKit::PDFPlugin::convertPostScriptDataIfNeeded): Deleted.
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288825 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-01-31  Per Arne Vollan  <[email protected]>
+
+            [WP] Remove PostScript conversion code
+            https://bugs.webkit.org/show_bug.cgi?id=235892
+            <rdar://88172449>
+
+            Reviewed by Brent Fulgham.
+
+            The WebContent process no longer has access to the PostScript conversion service, so there is no need to keep this code.
+
+            * WebProcess/Plugins/PDF/PDFPlugin.h:
+            * WebProcess/Plugins/PDF/PDFPlugin.mm:
+            (WebKit::PDFPlugin::streamDidFinishLoading):
+            (WebKit::PDFPlugin::manualStreamDidFinishLoading):
+            (WebKit::PDFPlugin::convertPostScriptDataIfNeeded): Deleted.
+
+2022-02-08  Alan Coon  <[email protected]>
+
         Cherry-pick r288776. rdar://problem/88214729
 
     [macOS][WP] Temporarily add syscall to sandbox

Modified: branches/safari-613.1.16.1-branch/Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.h (289389 => 289390)


--- branches/safari-613.1.16.1-branch/Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.h	2022-02-08 18:55:35 UTC (rev 289389)
+++ branches/safari-613.1.16.1-branch/Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.h	2022-02-08 18:55:38 UTC (rev 289390)
@@ -288,8 +288,6 @@
     JSObjectRef makeJSPDFDoc(JSContextRef);
     static JSValueRef jsPDFDocPrint(JSContextRef, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception);
 
-    void convertPostScriptDataIfNeeded();
-
     void setSuggestedFilename(const String&);
 
     // Regular plug-ins don't need access to view, but we add scrollbars to embedding FrameView for proper event handling.

Modified: branches/safari-613.1.16.1-branch/Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm (289389 => 289390)


--- branches/safari-613.1.16.1-branch/Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm	2022-02-08 18:55:35 UTC (rev 289389)
+++ branches/safari-613.1.16.1-branch/Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm	2022-02-08 18:55:38 UTC (rev 289390)
@@ -1623,14 +1623,6 @@
     return JSObjectMake(ctx, jsPDFDocClass, this);
 }
 
-void PDFPlugin::convertPostScriptDataIfNeeded()
-{
-    if (!m_isPostScript)
-        return;
-
-    m_data = PDFDocumentImage::convertPostScriptDataToPDF(WTFMove(m_data));
-}
-
 void PDFPlugin::documentDataDidFinishLoading()
 {
     if (m_hasBeenDestroyed)
@@ -1734,7 +1726,6 @@
 {
     ASSERT_UNUSED(streamID, streamID == pdfDocumentRequestID);
 
-    convertPostScriptDataIfNeeded();
     documentDataDidFinishLoading();
 }
 
@@ -1796,7 +1787,6 @@
 
 void PDFPlugin::manualStreamDidFinishLoading()
 {
-    convertPostScriptDataIfNeeded();
     documentDataDidFinishLoading();
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to