Description[InputEvent] Introduce |StaticRange| and use in |InputEvent::getRanges()|
|StaticRange| is a lightweight version of |Range|, but it
does not mutate on DOM change, so using |StaticRange| won't
slow down DOM operations.
|StaticRange| should be used in new APIs, and it
provides method |toRange()| to up-convert to a fully
featured |Range| object when necessary.
Currently it's |RuntimeEnabled=InputEvent| since it's only
used by |InputEvent|.
Proposal=https://github.com/garykac/staticrange/blob/master/staticrange.md
WICG=https://discourse.wicg.io/t/proposal-staticrange-to-be-used-instead-of-range-for-new-apis/1472
BUG=609142
Intent to Implement:
https://groups.google.com/a/chromium.org/forum/#!searchin/blink-dev/InputEvent/blink-dev/RrnitB0OElc/rirueVekCwAJ
Committed: https://crrev.com/f60c2289f4ac727397e04c1b774af9711897eef1
Cr-Commit-Position: refs/heads/master@{#398376}
Patch Set 1 : Introduce |StaticRange| and add tests #
Total comments: 10
Patch Set 2 : dtapuska's review #Patch Set 3 : Rebase #Messages
Total messages: 31 (17 generated)
|