Open Bug 160143 Opened 23 years ago Updated 2 years ago

Minor optimization to CSS color function

Categories

(Core :: Layout, defect, P3)

x86
Windows XP
defect

Tracking

()

People

(Reporter: hwaara, Unassigned)

Details

Attachments

(2 files, 4 obsolete files)

This patch slightly optimizes nsCSSRendering::TranformColor() and wipes away a redundany call to it from a rendering hot-spot in nsTextFrame... The reason we don't need it in nsTextFrame, is this: TransformColor() bails out if its second argument is false, and we call it like this: } else if (!isPaginated) { aRenderingContext.SetColor(currentFGColor);
Attached patch Patch (obsolete) — Splinter Review
Also remove some ifdeffed-out code.
Bz, wanna check out the patch?
Attached patch Patch -u10 (obsolete) — Splinter Review
More context requested.
Attached patch Patch -u10, v2 (obsolete) — Splinter Review
More TransformColor() removal, and some review nits fixed.
Attached patch Patch -u10, v3 (obsolete) — Splinter Review
A real _patch_ this time. ;-)
Attachment #93321 - Attachment is obsolete: true
Attachment #93322 - Attachment is obsolete: true
Attachment #93332 - Attachment is obsolete: true
Attached patch Final patchSplinter Review
Fixed some final nits from bz.
Attachment #93335 - Attachment is obsolete: true
Comment on attachment 93340 [details] [diff] [review] Final patch sr=bzbarsky if you indent that comment about new selection painting two more spaces
Attachment #93340 - Flags: superreview+
Comment on attachment 93340 [details] [diff] [review] Final patch r=jkeiser
Attachment #93340 - Flags: review+
Priority: -- → P3
hwaara, are you still planning to check this in? Or what?
Was this ever checked in. Any updates?
Anne, you can use lxr/bonsai to see whether it was checked in. As for updates, if it hasn't been checked in and applies to trunk, let me know.
I downloaded the patch, updated the locations of the files and also got the newest files from CVS. However, all "5 hunks" failed. (When comparing them visually this seems quite logical.)
Well, then if it's not in the trunk yet someone should merge it to trunk and request reviews... ;)
Attached patch untested mergeSplinter Review
anne: if this works, can you rerequest reviews from the original reviewers?
Attachment #174465 - Flags: review?(bug)
Comment on attachment 174465 [details] [diff] [review] untested merge It applies perfectly. Re-requesting review from original reviewers.
Attachment #174465 - Flags: superreview?(bzbarsky)
Attachment #174465 - Flags: review?(john)
Attachment #174465 - Flags: review?(bug)
Mabus said he might have time to test it later today (tonight). I misunderstood timeless request.
Comment on attachment 174465 [details] [diff] [review] untested merge 1) jkeiser is not allowed to look at bugzilla by the terms of his employment contract. 2) Don't ever request review on a patch that hasn't been compiled and run unless it's really absolutely necessary.
Attachment #174465 - Flags: superreview?(bzbarsky)
Attachment #174465 - Flags: superreview-
Attachment #174465 - Flags: review?(john)
No idea if the patch still applies nor if this is valid. If someone's interested, feel free to check. Reassigning to get out of my bug list.
Assignee: hwaara → nobody
QA Contact: chrispetersen → layout
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: