Reviewed by Chris.
- WebCore part of fix for <rdar://problem/
3980651> REGRESSION (125-180): Huge number of pages printed from certain page,
iFrame involved
This also fixes the problems with printing from GMail, yay!
* khtml/rendering/render_flow.cpp:
(RenderFlow::paintLines):
If the current line is taller than the entire page height (e.g. tall iFrame), don't try
to avoid splitting it across pages.
* kwq/WebCoreBridge.mm:
(-[WebCoreBridge computePageRectsWithPrintWidthScaleFactor:printHeight:]):
Handle error cases in a more obvious manner; this will cause future problems like this
to print a blank page and complain to the console on debug builds, rather than print a
zillionty mostly-blank pages.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8509
268f45cc-cd09-0410-ab3c-
d52691b4dbfc