Closed Bug 416509 Opened 17 years ago Closed 16 years ago

nsAutoRepeatBoxFrame should not cache the "repeat" attribute value in mIsPressMode

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: roc, Assigned: Swatinem)

Details

(Whiteboard: [good first bug][wanted-1.9.1])

Attachments

(1 file, 2 obsolete files)

That is a stupid "optimization". It should just check the attribute value every time it's needed, that will remove some code.
Whiteboard: [good first bug]
Attached patch v1 (obsolete) — Splinter Review
This patch removes mIsPressMode and InitRepeatMode and uses AttrValueIs directly where needed. The patch is against mozilla-central, I will update it and ask for review as soon as mozilla-central is updated or I can figure out how to pull&merge in cvs-trunk-mirror myself. Can someone please assign this bug to me?
You've been granted 'editbugs' permission so you can assign this to yourself. This patch is great, but it would be slightly better if there was a private helper method to encapsulate the AttrValueIs check, say "IsActivedOnHover()".
Status: NEW → ASSIGNED
Assignee: nobody → arpad.borsos
Status: ASSIGNED → NEW
Attached patch v2 (obsolete) — Splinter Review
Thanks for the editbugs ;) This patch uses a helper method, but it's still based on mozilla-central though.
Attachment #304488 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Normally you would ask for review from someone, say me :-) This is a good fix that we'll land after FF3. We're a bit too close to the end of FF3 to land this sort of cleanup now. That seemed pretty painless so you might want to get your teeth into some harder bugs :-).
Whiteboard: [good first bug] → [good first bug][wanted-1.9.1]
Oh, when FF3 ships remind me to check this in. Thanks!!!
Attached patch update to tipSplinter Review
Same patch, updated to apply cleanly on recent mozilla-central, carrying over r+
Attachment #304684 - Attachment is obsolete: true
Attachment #305360 - Flags: superreview+
Attachment #305360 - Flags: review+
mozilla-central has been open for some time now, so I think it's time to get this in.
Whiteboard: [good first bug][wanted-1.9.1] → [good first bug][wanted-1.9.1][checkin-needed]
Keywords: checkin-needed
Whiteboard: [good first bug][wanted-1.9.1][checkin-needed] → [good first bug][wanted-1.9.1]
Thanks for reminding me! Checked in.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: