[Webkit-unassigned] [Bug 204937] Support for resolving highlight pseudo element style

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Dec 8 00:18:03 PST 2019


https://bugs.webkit.org/show_bug.cgi?id=204937

--- Comment #9 from Antti Koivisto <koivisto at iki.fi> ---
> I meant how does our text painting code find the list of highlights that may
> apply to an element?

Details depend on how you are representing ranges in the rendering side and who is caching styles, but basically

1) look up which highlight ranges containing the element being painted
2) with the range/element pairs look up the styles (via getUncachedPseudoStyle)
3) cache the style somewhere (maybe in the range itself, maybe extension of getCachedPseudoStyle).

This is a sort of combination how marker and first-line painting currently works.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191208/e892be25/attachment.htm>


More information about the webkit-unassigned mailing list