Closed Bug 558954 Opened 15 years ago Closed 15 years ago

Don't show/hide placeholder if we're about to initialize the editor

Categories

(Core :: Layout: Form Controls, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a5

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

Details

(Keywords: perf)

Attachments

(1 file)

Attached patch Patch (v1) (deleted) — Splinter Review
Currently, in nsTextControlFrame::UpdateValueDisplay, we show/hide the placeholder unconditionally, but if we're being called from nsTextControlFrame::EnsureEditorInitializedInternal, we don't need to do that, since that function will do it again after the editor is initialized.

This is a small perf win.  For example, it can buy us about 2.7% of the total time, and it's totally redundant, so we can remove it.
Attachment #438629 - Flags: review?(roc)
OS: Mac OS X → All
http://hg.mozilla.org/mozilla-central/rev/35aa2569f5b7
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: