Closed Bug 609162 Opened 14 years ago Closed 14 years ago

Do not invalidate textarea at every value change (when a placeholder is set)

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b8

People

(Reporter: mounir, Assigned: mounir)

References

Details

(Keywords: perf)

Attachments

(1 file)

Like bug 605741 mentioned, it's really bad for performance to invalidate textarea at every key stroke and it seems that we are currently doing that when the textarea has a placeholder attribute.

This bug should be fixed with bug 605124 if it doesn't take too much time. Otherwise, I will write a patch here. It's quite simple.
Summary: Do not invalidate textarea at every value change → Do not invalidate textarea at every value change (when a placeholder is set)
Attached patch Patch v1Splinter Review
Assignee: nobody → mounir.lamouri
Status: NEW → ASSIGNED
Attachment #488051 - Flags: review?(bzbarsky)
Patches in bug 605124 have to be applied on top of the patch here.
Blocks: 605124
Comment on attachment 488051 [details] [diff] [review]
Patch v1

This is fine, but we should consider changing that native theme thing to check whether the states really matter before invalidating....
Attachment #488051 - Flags: review?(bzbarsky) → review+
Attachment #488051 - Flags: approval2.0?
Attachment #488051 - Flags: approval2.0? → approval2.0+
Pushed:
http://hg.mozilla.org/mozilla-central/rev/a26199cd24df
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: