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)
Core
Layout
Tracking
()
RESOLVED
FIXED
People
(Reporter: roc, Assigned: Swatinem)
Details
(Whiteboard: [good first bug][wanted-1.9.1])
Attachments
(1 file, 2 obsolete files)
3.17 KB,
patch
|
Swatinem
:
review+
Swatinem
:
superreview+
|
Details | Diff | Splinter Review |
That is a stupid "optimization". It should just check the attribute value every time it's needed, that will remove some code.
Reporter | ||
Updated•17 years ago
|
Whiteboard: [good first bug]
Assignee | ||
Comment 1•17 years ago
|
||
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?
Reporter | ||
Comment 2•17 years ago
|
||
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()".
Assignee | ||
Updated•17 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•17 years ago
|
Assignee: nobody → arpad.borsos
Status: ASSIGNED → NEW
Assignee | ||
Comment 3•17 years ago
|
||
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
Assignee | ||
Updated•17 years ago
|
Status: NEW → ASSIGNED
Reporter | ||
Updated•17 years ago
|
Attachment #304684 -
Flags: superreview+
Attachment #304684 -
Flags: review+
Reporter | ||
Comment 4•17 years ago
|
||
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]
Reporter | ||
Comment 5•17 years ago
|
||
Oh, when FF3 ships remind me to check this in. Thanks!!!
Assignee | ||
Comment 6•17 years ago
|
||
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+
Assignee | ||
Comment 7•16 years ago
|
||
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]
Reporter | ||
Comment 8•16 years ago
|
||
Thanks for reminding me! Checked in.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
Keywords: checkin-needed
Updated•6 years ago
|
Product: Core → Core Graveyard
Updated•6 years ago
|
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.
Description
•