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 2199523002: Convert WebRange to be a simple pair of numbers. (Closed)

Created:
4 years, 4 months ago by dglazkov
Modified:
4 years, 4 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dcheng, dglazkov+blink, jam, kinuko+watch, mlamouri+watch-blink_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert WebRange to be a simple pair of numbers. Instead of wrapping and carrying a fairly complex Range object, just use a pair of numbers to convey this information outside of the renderer. The embedders don't need anything else. R=avi,esprehn BUG=635386 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/8f8060f3c58fe047bc3d9de90752cf3735f6beac Cr-Commit-Position: refs/heads/master@{#411104}

Patch Set 1 #

Patch Set 2 : Created WebDeprecatedRange. #

Patch Set 3 : WIP #

Patch Set 4 : Let's try things. #

Patch Set 5 : Fix oopsies. #

Patch Set 6 : Let's see now... #

Patch Set 7 : Clean up. #

Patch Set 8 : Moar cleanup. #

Total comments: 7

Patch Set 9 : Comments addressed. #

Patch Set 10 : Forgot the exports. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -99 lines) Patch
M components/printing/test/print_web_view_helper_browsertest.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 4 chunks +6 lines, -5 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp View 1 2 3 4 5 1 chunk +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 6 7 8 1 chunk +26 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebRange.cpp View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -48 lines 0 comments Download
M third_party/WebKit/Source/web/WebSurroundingText.cpp View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 1 chunk +2 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/public/web/WebLocalFrame.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebRange.h View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -25 lines 0 comments Download
M third_party/WebKit/public/web/WebSurroundingText.h View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 67 (46 generated)
dglazkov
Created WebDeprecatedRange.
4 years, 4 months ago (2016-08-02 22:09:06 UTC) #5
dglazkov
WIP
4 years, 4 months ago (2016-08-02 22:42:49 UTC) #11
dglazkov
Let's try things.
4 years, 4 months ago (2016-08-05 04:20:11 UTC) #12
dglazkov
Fix oopsies.
4 years, 4 months ago (2016-08-05 04:54:07 UTC) #17
dglazkov
Let's see now...
4 years, 4 months ago (2016-08-08 04:22:50 UTC) #22
dglazkov
Clean up.
4 years, 4 months ago (2016-08-09 05:03:59 UTC) #27
dglazkov
Moar cleanup.
4 years, 4 months ago (2016-08-09 18:09:44 UTC) #34
dglazkov
PTAL.
4 years, 4 months ago (2016-08-09 18:10:13 UTC) #37
ojan
lgtm https://codereview.chromium.org/2199523002/diff/140001/third_party/WebKit/Source/web/WebRange.cpp File third_party/WebKit/Source/web/WebRange.cpp (right): https://codereview.chromium.org/2199523002/diff/140001/third_party/WebKit/Source/web/WebRange.cpp#newcode45 third_party/WebKit/Source/web/WebRange.cpp:45: DCHECK(start != 1 && length != 0) << ...
4 years, 4 months ago (2016-08-09 18:15:05 UTC) #39
esprehn
https://codereview.chromium.org/2199523002/diff/140001/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp File third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp (right): https://codereview.chromium.org/2199523002/diff/140001/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp#newcode903 third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp:903: // silly. What is going on here? yeah seems ...
4 years, 4 months ago (2016-08-10 04:12:06 UTC) #42
esprehn
lgtm w/ Ojan's fix, but we really need to switch this to EphemeralRange.
4 years, 4 months ago (2016-08-10 04:12:28 UTC) #43
dglazkov
Comments addressed.
4 years, 4 months ago (2016-08-10 05:10:43 UTC) #44
dglazkov
https://codereview.chromium.org/2199523002/diff/140001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp File third_party/WebKit/Source/web/WebLocalFrameImpl.cpp (right): https://codereview.chromium.org/2199523002/diff/140001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp#newcode1180 third_party/WebKit/Source/web/WebLocalFrameImpl.cpp:1180: if (Range* range = webRange.createRange(frame())) On 2016/08/10 at 04:12:06, ...
4 years, 4 months ago (2016-08-10 05:12:13 UTC) #47
dglazkov
Forgot the exports.
4 years, 4 months ago (2016-08-10 05:34:33 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2199523002/180001
4 years, 4 months ago (2016-08-10 17:32:32 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/235094)
4 years, 4 months ago (2016-08-10 17:44:07 UTC) #59
esprehn
thestig@ Can we get a stamp on the printing change here? It's totally mechanical.
4 years, 4 months ago (2016-08-10 17:55:56 UTC) #61
Lei Zhang
lgtm
4 years, 4 months ago (2016-08-10 18:01:34 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2199523002/180001
4 years, 4 months ago (2016-08-10 18:03:32 UTC) #64
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 4 months ago (2016-08-10 18:47:59 UTC) #65
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 18:49:50 UTC) #67
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/8f8060f3c58fe047bc3d9de90752cf3735f6beac
Cr-Commit-Position: refs/heads/master@{#411104}

Powered by Google App Engine
This is Rietveld 408576698