Open Bug 1518055 Opened 5 years ago Updated 2 years ago

Cache nsIFrames selected state when possible

Categories

(Core :: DOM: Selection, enhancement, P2)

enhancement

Tracking

()

People

(Reporter: smaug, Assigned: smaug)

References

(Blocks 1 open bug)

Details

Attachments

(2 obsolete files)

      No description provided.
Attached patch selection_flag_cache_4.diff (obsolete) — Splinter Review
It would be nicer to keep the flags in nsIFrame only, but it has only one spare bit.
So the patch doesn't cache the state per textframe but per node, if it has only one frame.

This relies on Selection (SelectFrames()) and nsRange (InvalidateAllFrames()) to call InvalidateFrameSubtree on the common ancestor.



(slow selection painting is different bug, bug 1518052)
Attachment #9034638 - Flags: feedback?(mats)
Priority: -- → P2
Comment on attachment 9034638 [details] [diff] [review]
selection_flag_cache_4.diff

Crap, bug 1305957 used the last free bit. Back to drawing board.
Attachment #9034638 - Flags: feedback?(mats)
Attachment #9034638 - Attachment is obsolete: true
Attachment #9039640 - Attachment is obsolete: true
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: