Peter Kasting wrote:
> Martijn wrote:
>> On 6/23/06, Ondrej Jaura <[EMAIL PROTECTED]> wrote:
>>>         Technically yes, but it should allow to highlight more
>>> elements (or
>>> text parts) with different colours; this is not possible with the
>>> selection.
>>>         And the selection is not resistant to user actions, is it?
>>
>> I think the spellchecker is using the selection code and that is
>> resistant to user actions, so you might want to look on how that code
>> is working.
> 
> A very similar mechanism is how I'm planning to fix Find bar
> highlighting at some point (bug 263683).  You use a different selection
> type than SELECTION_NORMAL (which is the user selection and the find bar
> current match).  I'm planning to add a type for highlighting.  That will
> mean the find bar no longer has to goof with the DOM, which should fix a
> lot of issues.

And really, someone should make this extensible infrastructure so an
extension or API can define new selection types on demand.

/me nominates pkasting

Rob
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to