Closed
Bug 394792
Opened 17 years ago
Closed 17 years ago
[FIX]Only bother updating text input commands for focused text inputs
Categories
(Core :: Layout: Form Controls, defect, P3)
Core
Layout: Form Controls
Tracking
()
RESOLVED
FIXED
mozilla1.9beta1
People
(Reporter: neil, Assigned: bzbarsky)
Details
(Keywords: perf)
Attachments
(2 files)
(deleted),
patch
|
roc
:
review+
neil
:
superreview+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
roc
:
review+
roc
:
superreview+
roc
:
approval1.9+
|
Details | Diff | Splinter Review |
We currently trigger a select command update whenever the selection changes in any text field. However our select commandupdaters only ever care about the selection in the focused field. All other events are therefore pointless.
This applies to undo command updates too.
Assignee | ||
Comment 1•17 years ago
|
||
It's not an issue for undo, because we're not an editor listener unless we're focused.
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #280807 -
Flags: superreview?(neil)
Attachment #280807 -
Flags: review?(roc)
Assignee | ||
Updated•17 years ago
|
Priority: -- → P3
Summary: Only bother updating text input commands for focused text inputs → [FIX]Only bother updating text input commands for focused text inputs
Target Milestone: --- → mozilla1.9 M9
Reporter | ||
Updated•17 years ago
|
Attachment #280807 -
Flags: superreview?(neil) → superreview+
Comment on attachment 280807 [details] [diff] [review]
Like so
I assume there's no other easy way to check whether we have focus?
Attachment #280807 -
Flags: review?(roc) → review+
Assignee | ||
Comment 3•17 years ago
|
||
> I assume there's no other easy way to check whether we have focus?
Well... we could GetContentState(mFrame->GetContent()) on the ESM and see whether it has the FOCUSED state. I think that should be equivalent, though slower. Memory usage will be the same, since I'm adding a 4th PRPackedBool here.
I can do the content state thing if you'd prefer, though.
I think I'd prefer that ... extra state that has to be maintained adds a little more complexity.
Assignee | ||
Comment 5•17 years ago
|
||
Attachment #280949 -
Flags: review?(roc)
Attachment #280949 -
Flags: approval1.9?
Attachment #280949 -
Flags: superreview+
Attachment #280949 -
Flags: review?(roc)
Attachment #280949 -
Flags: review+
Attachment #280949 -
Flags: approval1.9?
Attachment #280949 -
Flags: approval1.9+
Assignee | ||
Comment 6•17 years ago
|
||
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•