Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Issue 2022863002: [InputEvent] Introduce |StaticRange| and use in |InputEvent::getRanges()| (Closed)

Created:
4 years, 6 months ago by chongz
Modified:
4 years, 6 months ago
Reviewers:
dtapuska, ojan
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+492 lines, -6 lines) Patch
A third_party/WebKit/LayoutTests/fast/dom/StaticRange/staticrange-constructor.html View 1 chunk +42 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/dom/StaticRange/staticrange-no-mutate.html View 1 chunk +34 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/inputevents/before-input-ranges.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 chunks +4 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/StaticRange.h View 1 1 chunk +69 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/StaticRange.cpp View 1 1 chunk +62 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/StaticRange.idl View 1 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/StaticRangeTest.cpp View 1 1 chunk +231 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/InputEvent.h View 2 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/events/InputEvent.cpp View 1 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/InputEvent.idl View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 31 (17 generated)
chongz
dtapuska@ PTAL, thanks!
4 years, 6 months ago (2016-06-01 16:00:48 UTC) #9
dtapuska
https://codereview.chromium.org/2022863002/diff/60001/third_party/WebKit/Source/core/dom/StaticRange.cpp File third_party/WebKit/Source/core/dom/StaticRange.cpp (right): https://codereview.chromium.org/2022863002/diff/60001/third_party/WebKit/Source/core/dom/StaticRange.cpp#newcode46 third_party/WebKit/Source/core/dom/StaticRange.cpp:46: return toRangeImpl(*scriptState->domWindow()->document(), exceptionState); Is this correct? does this work ...
4 years, 6 months ago (2016-06-02 15:26:30 UTC) #10
chongz
dtapuska@ PTAL, thanks! https://codereview.chromium.org/2022863002/diff/60001/third_party/WebKit/Source/core/dom/StaticRange.cpp File third_party/WebKit/Source/core/dom/StaticRange.cpp (right): https://codereview.chromium.org/2022863002/diff/60001/third_party/WebKit/Source/core/dom/StaticRange.cpp#newcode46 third_party/WebKit/Source/core/dom/StaticRange.cpp:46: return toRangeImpl(*scriptState->domWindow()->document(), exceptionState); On 2016/06/02 15:26:29, ...
4 years, 6 months ago (2016-06-06 19:43:44 UTC) #11
dtapuska
On 2016/06/06 19:43:44, chongz wrote: > dtapuska@ PTAL, thanks! > > https://codereview.chromium.org/2022863002/diff/60001/third_party/WebKit/Source/core/dom/StaticRange.cpp > File third_party/WebKit/Source/core/dom/StaticRange.cpp ...
4 years, 6 months ago (2016-06-06 20:12:38 UTC) #12
chongz
ojan@ PTAL at the second |StaticRange| CL, thanks!
4 years, 6 months ago (2016-06-06 20:17:32 UTC) #14
ojan
lgtm
4 years, 6 months ago (2016-06-06 21:06:11 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2022863002/80001
4 years, 6 months ago (2016-06-06 21:06:40 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/234169)
4 years, 6 months ago (2016-06-07 02:04:09 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2022863002/100001
4 years, 6 months ago (2016-06-07 19:31:46 UTC) #22
dglazkov
Do we have an Intent to Implement?
4 years, 6 months ago (2016-06-07 19:39:10 UTC) #23
chongz
On 2016/06/07 19:39:10, dglazkov wrote: > Do we have an Intent to Implement? Yes, the ...
4 years, 6 months ago (2016-06-07 20:11:05 UTC) #26
dglazkov
On 2016/06/07 at 20:11:05, chongz wrote: > On 2016/06/07 19:39:10, dglazkov wrote: > > Do ...
4 years, 6 months ago (2016-06-07 20:13:39 UTC) #27
commit-bot: I haz the power
Committed patchset #3 (id:100001)
4 years, 6 months ago (2016-06-07 21:30:44 UTC) #29
commit-bot: I haz the power
4 years, 6 months ago (2016-06-07 21:33:17 UTC) #31
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f60c2289f4ac727397e04c1b774af9711897eef1
Cr-Commit-Position: refs/heads/master@{#398376}

Powered by Google App Engine
This is Rietveld 408576698