DescriptionFix the print preview regression bug caused by r98926.
If we are previewing a PDF file, always invoke "PrepareFrameAndPrint"
FinishPrinting() before calling metafile FinishDocument() function.
If we are previewing a normal html page, we can invoke FinishDocument()
as soon as the print ready document is ready and then we can call
FinishPrinting() after rendering all the draft pages.
BUG=94998
TEST=Preview PDFs results in valid preview data.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99344
Patch Set 1 #Patch Set 2 : Refactored the code as per comments. #
Total comments: 7
Patch Set 3 : Fixed a minor issue in print_preview.js #Patch Set 4 : Fixed a typo #
Total comments: 2
Patch Set 5 : Rebased with trunk code. #Patch Set 6 : Fix js code comments. #Patch Set 7 : '' #
Messages
Total messages: 11 (0 generated)
|