Closed Bug 212683 Opened 22 years ago Closed 22 years ago

cleanup usage of Is* utility methods; add new methods

Categories

(Core :: DOM: Editor, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.5beta

People

(Reporter: Brade, Assigned: Brade)

References

Details

(Keywords: perf)

Attachments

(1 file)

We could better factor some code by having a few more Is* utility methods. One example is "IsInlineStyle" We should also check where NodeIsType is called (or other Is* utilities) and make sure that we are calling the appropriate ones. Sometimes we are checking for all but one or two obscure tags which may really be a bug rather than intentionally leaving them out.
Attached patch patch v1Splinter Review
Comment on attachment 128732 [details] [diff] [review] patch v1 The very little code increase generated by this patch is probably counter-balanced by the little perf improvement. Worth doing it, IMHO. r=glazman
Attachment #128732 - Flags: review+
Attachment #128732 - Flags: superreview+
checked in
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.5beta
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: