[Webkit-unassigned] [Bug 59598] New: GTK printing does not allow for page breaks to be controller from HTML

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 27 04:36:03 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=59598

           Summary: GTK printing does not allow for page breaks to be
                    controller from HTML
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: christophe at saout.de


WebKit has limited page-break support. However, this cannot be used from the GTK port.

The "fix" is trivial:

--- a/Source/WebKit/gtk/webkit/webkitwebframe.cpp
+++ b/Source/WebKit/gtk/webkit/webkitwebframe.cpp
@@ -756,7 +756,7 @@ static void begin_print_callback(GtkPrintOperation* op, GtkPrintContext* context
     float height = gtk_print_context_get_height(context);
     FloatRect printRect = FloatRect(0, 0, width, height);

-    printContext->begin(width);
+    printContext->begin(width, height);

     // TODO: Margin adjustments and header/footer support
     float headerHeight = 0;


However, the page break support still has some kinks, so this might be disabled on purpose (don't know).

I ran at least into this bug https://bugs.webkit.org/show_bug.cgi?id=59597 (which can be fixed) to make it work as intended for the cases that are supported.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list