Open Bug 176307 Opened 23 years ago Updated 3 years ago

layout string cleanup

Categories

(Core :: Layout, defect, P3)

x86
Windows 2000
defect

Tracking

()

mozilla1.5alpha

People

(Reporter: alecf, Unassigned)

Details

(Keywords: memory-footprint, topembed+, Whiteboard: fix in hand)

Attachments

(1 file)

So the other day I poked at two things: 1) printing was passing around a lot of PRUnichar*'s where they should have been using const PRUnichar* - this resulted in a slightly cleaner API with slightly less casting 2) layout uses a unicode string to represent the content type (i.e. "text/html") of a document, and that just seemed wasteful. So I changed it to use ASCII... this resulted in a few less conversions as necko stores the content type as ASCII already. I cleaned up a few random other things as well, figured I'd roll all the changes into one patch (including fixing a few "new nsString", use of nsString when nsAutoString would be better, etc. Don't ask how I found this stuff. I'd like to get an r=jkeiser, sr=jag or sr=dbaron.
Here's the patch. Its not small, but it is really straight forward.
Status: NEW → ASSIGNED
Priority: -- → P2
Whiteboard: fix in hand
Target Milestone: --- → mozilla1.3alpha
QA Contact: gerardok → praveenqa
Comment on attachment 103897 [details] [diff] [review] clean up some string usage Bug me sometime in 1.3 for review. Are all these changes from support for unicode to just ascii safe?
moving somewhat important bugs to 1.3beta for consideration - some of these may be bumped out to 1.4alpha after being evaluated.
Target Milestone: mozilla1.3alpha → mozilla1.3beta
Target Milestone: mozilla1.3beta → mozilla1.4alpha
Keywords: footprint, topembed
Discussed in edt bug triage. Plussing.
Keywords: topembedtopembed+
bumping these to 1.5alpha, I just don't have time in 1.4beta...
Target Milestone: mozilla1.4alpha → mozilla1.5alpha
QA Contact: praveenqa → dsirnapalli
Has the time come to get the patch in this bug reviewed?
Hmm, looks like changing nsIDocumentEncoder to take an ACString for mime types might still be worth doing. The rest is mostly obsolete.
QA Contact: dsirnapalli → layout
Moving to p3 because no activity for at least 1 year(s). See https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage for more information
Priority: P2 → P3
Assignee: alecf → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: