Closed Bug 889219 Opened 11 years ago Closed 11 years ago

Clean up nsPrintEngine/nsSimplePageSequence a bit

Categories

(Core :: Layout, defect)

18 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: roc, Assigned: roc)

Details

Attachments

(5 files)

While working on bug 886295 I did some cleanup patches that we should land, even though I decided to fix bug 886295 another way.
Comment on attachment 770022 [details] [diff] [review]
Part 1: Clean up nsPrintEngine string usage for document titles/URLs

In layout/printing/nsPrintEngine.cpp
> nsresult nsPrintEngine::DocumentReadyForPrinting()
> ...
>     // Print Preview -- Pass ownership of docTitleStr and docURLStr
>     // to the pageSequenceFrame, to be displayed in the header
>     nsIPageSequenceFrame *seqFrame = mPrt->mPrintObject->mPresShell->GetPageSequenceFrame();
>     if (seqFrame) {
>       seqFrame->StartPrint(mPrt->mPrintObject->mPresContext, 
>                            mPrt->mPrintSettings, docTitleStr, docURLStr);
>-      docTitleStr = nullptr;
>-      docURLStr = nullptr;
>     }
>   }

Please remove the now obsolete "Pass ownership" comment.

r=mats
Attachment #770022 - Flags: review?(matspal) → review+
Attachment #770023 - Flags: review?(matspal) → review+
Attachment #770024 - Flags: review?(matspal) → review+
Attachment #770025 - Flags: review?(matspal) → review+
Attachment #770026 - Flags: review?(matspal) → review+
Part 1 pushed to Aurora with no review flag:
http://hg.mozilla.org/releases/mozilla-aurora/rev/5a6f73ab541d
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: