⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 292904 in webkit


Ignore:
Timestamp:
Apr 15, 2022, 4:41:51 AM (4 years ago)
Author:
Claudio Saavedra
Message:

[GTK] Default initialize GTK-specific print info in WebKit::PrintInfo
https://bugs.webkit.org/show_bug.cgi?id=196542

Reviewed by Adrian Perez de Castro.

Source/WebKit:

printInfoFromWKPrintInfo() will not initialize GTK-specific bits,
leading to problems down the road with IPC encoders, so add default values.

  • Shared/PrintInfo.h:

LayoutTests:

  • LayoutTests/platform/gtk/TestExpectations: Remove now passing tests
  • platform/gtk/editing/execCommand/print-expected.png: Update expectations
  • platform/gtk/editing/execCommand/print-expected.txt:
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r292902 r292904  
     12022-04-14  Claudio Saavedra  <csaavedra@igalia.com>
     2
     3        [GTK] Default initialize GTK-specific print info in WebKit::PrintInfo
     4        https://bugs.webkit.org/show_bug.cgi?id=196542
     5
     6        Reviewed by Adrian Perez de Castro.
     7
     8        * LayoutTests/platform/gtk/TestExpectations: Remove now passing tests
     9        * platform/gtk/editing/execCommand/print-expected.png: Update expectations
     10        * platform/gtk/editing/execCommand/print-expected.txt:
     11
    1122022-04-14  Antoine Quint  <graouts@apple.com>
    213
  • trunk/LayoutTests/platform/gtk/TestExpectations

    r292495 r292904  
    174174webkit.org/b/218349 mathml/presentation/href-enter.html [ ImageOnlyFailure ]
    175175webkit.org/b/218349 mathml/presentation/href-style.html [ ImageOnlyFailure ]
    176 
    177 # Printing
    178 webkit.org/b/196542 printing/crash-while-formatting-subframe-for-printing.html [ Crash ]
    179 webkit.org/b/196542 printing/printing-events.html [ Crash ]
    180176
    181177# ResourceLoading
     
    938934webkit.org/b/212232 editing/async-clipboard/clipboard-read-while-pasting.html [ Crash ]
    939935
    940 webkit.org/b/225921 editing/execCommand/print.html [ Crash ]
    941 webkit.org/b/225921 fast/media/print-restores-previous-mediatype.html [ Crash ]
    942 webkit.org/b/225921 printing/print-close-crash.html [ Crash ]
    943 
    944936#////////////////////////////////////////////////////////////////////////////////////////
    945937# End of Crashing tests
  • trunk/LayoutTests/platform/gtk/editing/execCommand/print-expected.txt

    r221818 r292904  
    1212            RenderText {#text} at (0,0) size 693x53
    1313              text run at (0,0) width 687: "\"The quick brown fox jumps over the lazy dog\" uses every letter in the"
    14               text run at (687,0) width 6: " "
     14              text run at (686,0) width 7: " "
    1515              text run at (0,27) width 170: "english language."
    1616        RenderBlock (anonymous) at (14,92) size 756x216
     
    1818            RenderText {#text} at (0,0) size 756x215
    1919              text run at (0,0) width 462: "Here's to the crazy ones, the misfits, the rebels, "
    20               text run at (462,0) width 193: "the trouble makers, "
    21               text run at (655,0) width 92: "the round"
    22               text run at (747,0) width 6: " "
     20              text run at (461,0) width 194: "the trouble makers, "
     21              text run at (654,0) width 93: "the round"
     22              text run at (746,0) width 7: " "
    2323              text run at (0,27) width 243: "pegs in the square holes, "
    24               text run at (243,27) width 350: "the ones who see things differently. "
    25               text run at (593,27) width 144: "There not fond"
    26               text run at (737,27) width 6: " "
     24              text run at (243,27) width 349: "the ones who see things differently. "
     25              text run at (591,27) width 145: "There not fond"
     26              text run at (735,27) width 7: " "
    2727              text run at (0,54) width 510: "of rules, and they have no respect for the status quo, "
    2828              text run at (510,54) width 190: "you can quote then,"
  • trunk/Source/WebKit/ChangeLog

    r292903 r292904  
     12022-04-14  Claudio Saavedra  <csaavedra@igalia.com>
     2
     3        [GTK] Default initialize GTK-specific print info in WebKit::PrintInfo
     4        https://bugs.webkit.org/show_bug.cgi?id=196542
     5
     6        Reviewed by Adrian Perez de Castro.
     7
     8        printInfoFromWKPrintInfo() will not initialize GTK-specific bits,
     9        leading to problems down the road with IPC encoders, so add default values.
     10
     11        * Shared/PrintInfo.h:
     12
    1132022-04-15  Zan Dobersek  <zdobersek@igalia.com>
    214
  • trunk/Source/WebKit/Shared/PrintInfo.h

    r272207 r292904  
    3232OBJC_CLASS NSPrintInfo;
    3333#elif PLATFORM(GTK)
    34 typedef struct _GtkPrintSettings GtkPrintSettings;
    35 typedef struct _GtkPageSetup GtkPageSetup;
     34#include <gtk/gtk.h>
    3635#include <wtf/glib/GRefPtr.h>
    3736#else
     
    7069
    7170#if PLATFORM(GTK)
    72     GRefPtr<GtkPrintSettings> printSettings;
    73     GRefPtr<GtkPageSetup> pageSetup;
     71    GRefPtr<GtkPrintSettings> printSettings { adoptGRef(gtk_print_settings_new()) };
     72    GRefPtr<GtkPageSetup> pageSetup { adoptGRef(gtk_page_setup_new()) };
    7473    PrintMode printMode { PrintModeAsync };
    7574#endif
Note: See TracChangeset for help on using the changeset viewer.