Closed Bug 331530 Opened 19 years ago Closed 17 years ago

background painting and scrollbar code should use nsHTMLDocument::GetBody directly

Categories

(Core :: CSS Parsing and Computation, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla1.9beta4

People

(Reporter: dbaron, Assigned: dbaron)

References

Details

(Keywords: perf, Whiteboard: [patch])

Attachments

(1 file, 2 obsolete files)

Sicking points out that nsHTMLDocument::GetBody can be slow; we should expose GetBodyContent and use it in the places where background painting and scrollframes care about the <body> only (not framesets!).
Attached patch untested patch (obsolete) — Splinter Review
Untested patch (no longer applies to trunk due to sicking's backout).
Status: NEW → ASSIGNED
Priority: -- → P2
Whiteboard: [patch]
Target Milestone: --- → mozilla1.9alpha
Attachment #216069 - Flags: superreview?(jst)
Attachment #216069 - Flags: review?(bugmail)
Comment on attachment 216069 [details] [diff] [review] untested patch sr=jst
Attachment #216069 - Flags: superreview?(jst) → superreview+
QA Contact: ian → style-system
Attached patch patch (obsolete) — Splinter Review
Fixing bug 379461 reminded me of this patch that I had in my tree, so I updated it. I chose to name the new function GetBodyContentExternal this time, since it led to a smaller patch and it reduces the risk of future callers accidentally caling the slow virtual function when they could avoid it.
Attachment #216069 - Attachment is obsolete: true
Attachment #303678 - Flags: superreview?(jonas)
Attachment #303678 - Flags: review?(jonas)
Attachment #303678 - Flags: superreview?(jonas)
Attachment #303678 - Flags: review?(jonas)
Attached patch patchSplinter Review
This one actually works, now that I found I needed to manually modify htmldocument.gqi (UGH! filed bug 417892).
Attachment #303678 - Attachment is obsolete: true
Attachment #303684 - Flags: superreview?(jonas)
Attachment #303684 - Flags: review?(jonas)
Attachment #303684 - Flags: superreview?(jonas)
Attachment #303684 - Flags: superreview+
Attachment #303684 - Flags: review?(jonas)
Attachment #303684 - Flags: review+
Comment on attachment 303684 [details] [diff] [review] patch Simple performance patch (low risk) that I've had lying around for a long time.
Attachment #303684 - Flags: approval1.9?
Attachment #303684 - Flags: approval1.9? → approval1.9+
Checked in 2008-02-19 08:48 -0800, mostly backed out 2008-02-19 09:28 -0800 since I needed to back out bug 379461 (which this applied on top of) due to reftest failures, and relanded 2008-02-19 10:47 -0800.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: mozilla1.9alpha1 → mozilla1.9beta4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: