revert public-api changes and move header/footer code into private files
authorMilian Wolff <milian.wolff@kdab.com>
Thu, 23 Feb 2012 18:08:33 +0000 (19:08 +0100)
committerMilian Wolff <milian.wolff@kdab.com>
Thu, 23 Feb 2012 18:08:33 +0000 (19:08 +0100)
commitdfb469210e0597ce6a7faf59fe4f33e765d6596a
treee64e79dd8e96fe008140f986f56b02818f41cbb1
parent9aa6da7f328b48dd4e24256c077e53fdd90ed99c
revert public-api changes and move header/footer code into private files

this should make it easier to upstream this change as a patch to phantomjs

this furthermore changes the JS api a bit, now you must write something like

var PhantomJSPrinting = {
headerSize: function() { return '10mm'; },
footerSize: function() { return '1.5cm'; },
header: function(current, total) { return current + "/" + total; },
footer: function(current, total) { return current + "/" + total; }
};
src/3rdparty/webkit/Source/WebKit/qt/Api/qwebframe.cpp
src/3rdparty/webkit/Source/WebKit/qt/Api/qwebframe.h
src/3rdparty/webkit/Source/WebKit/qt/Api/qwebframe_p.h
src/3rdparty/webkit/Source/WebKit/qt/Api/qwebframe_printingaddons_p.h [new file with mode: 0644]