patches/w32pth-2.0.5/99-autogen.sh.patch \
patches/w32pth-2.0.5/01-def-fix.patch \
patches/webkitgtk-2.3.5a/00-srcdir-rename.patch \
- patches/webkitgtk-2.3.5a/09-duplicate-plugin-files.patch \
- patches/webkitgtk-2.3.5a/07-GDIObject-h.patch \
- patches/webkitgtk-2.3.5a/03-std-threads.patch \
- patches/webkitgtk-2.3.5a/04-no-msvc-asm.patch \
patches/webkitgtk-2.3.5a/01-gcc-check-bypass.patch \
patches/webkitgtk-2.3.5a/02-WTFHeaderDetection-be-gone.patch \
+ patches/webkitgtk-2.3.5a/03-std-threads.patch \
+ patches/webkitgtk-2.3.5a/04-no-msvc-asm.patch \
patches/webkitgtk-2.3.5a/05-no-class-size-check.patch \
- patches/webkitgtk-2.3.5a/08-no-opengl.patch \
patches/webkitgtk-2.3.5a/06-LLIntAssembly-hack.patch \
+ patches/webkitgtk-2.3.5a/07-GDIObject-h.patch \
+ patches/webkitgtk-2.3.5a/08-no-opengl.patch \
+ patches/webkitgtk-2.3.5a/09-duplicate-plugin-files.patch \
+ patches/webkitgtk-2.3.5a/10-print-size.patch \
patches/libical-2.0.0/01-gmtime_r.patch \
patches/regex-20090805/01-no-large-offsets.patch \
patches/libetpan-1.7/send_wouldblock.patch \
--- /dev/null
+#! /bin/sh
+patch -p1 -f $* < $0
+exit $?
+
+diff -ruN webkitgtk-2.3.5-orig/Source/WebKit/gtk/webkit/webkitwebframe.cpp webkitgtk-2.3.5/Source/WebKit/gtk/webkit/webkitwebframe.cpp
+--- webkitgtk-2.3.5-orig/Source/WebKit/gtk/webkit/webkitwebframe.cpp 2014-01-21 15:06:51.000000000 +0100
++++ webkitgtk-2.3.5/Source/WebKit/gtk/webkit/webkitwebframe.cpp 2017-05-08 12:39:32.547054972 +0200
+@@ -896,8 +896,13 @@
+ {
+ PrintContext* printContext = reinterpret_cast<PrintContext*>(user_data);
+
++ gdouble x_res = gtk_print_context_get_dpi_x(context);
++ gdouble y_res = gtk_print_context_get_dpi_y(context);
+ float width = gtk_print_context_get_width(context);
+ float height = gtk_print_context_get_height(context);
++ // force 72 dpi scale for all platforms
++ width /= x_res/72.0;
++ height /= y_res/72.0;
+ FloatRect printRect = FloatRect(0, 0, width, height);
+
+ printContext->begin(width);