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

Issue 2750833002: TextControlElement::selection() should return SelectionInDOMTree. (Closed)

Created:
3 years, 9 months ago by tanvir
Modified:
3 years, 9 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

TextControlElement::selection() should return SelectionInDOMTree. Currently |TextControlElement::selection()| is called only by Editor::selectionForCommand() and returned |Range| is used for constructing |EphemeralRange|, which again is used for constructing |SelectionInDOMTree|. This CL makes |TextControlElement::selection()| to return |SelectionInDOMTree| and avoid creation of Range. BUG=691193 Review-Url: https://codereview.chromium.org/2750833002 Cr-Commit-Position: refs/heads/master@{#457367} Committed: https://chromium.googlesource.com/chromium/src/+/e3ae803e5499bf5cc3104f06152b491b59668f88

Patch Set 1 #

Total comments: 4

Patch Set 2 : Y #

Patch Set 3 : Y #

Total comments: 7

Patch Set 4 : Y #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -16 lines) Patch
M third_party/WebKit/Source/core/editing/Editor.cpp View 1 chunk +3 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/html/TextControlElement.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/TextControlElement.cpp View 1 2 3 3 chunks +14 lines, -7 lines 0 comments Download

Messages

Total messages: 25 (16 generated)
Shanmuga Pandi
https://codereview.chromium.org/2750833002/diff/1/third_party/WebKit/Source/core/html/TextControlElement.cpp File third_party/WebKit/Source/core/html/TextControlElement.cpp (right): https://codereview.chromium.org/2750833002/diff/1/third_party/WebKit/Source/core/html/TextControlElement.cpp#newcode648 third_party/WebKit/Source/core/html/TextControlElement.cpp:648: We need to keep. if (!startNode || !endNode) return ...
3 years, 9 months ago (2017-03-14 14:31:49 UTC) #4
tanvir
https://codereview.chromium.org/2750833002/diff/1/third_party/WebKit/Source/core/html/TextControlElement.h File third_party/WebKit/Source/core/html/TextControlElement.h (right): https://codereview.chromium.org/2750833002/diff/1/third_party/WebKit/Source/core/html/TextControlElement.h#newcode34 third_party/WebKit/Source/core/html/TextControlElement.h:34: namespace blink { On 2017/03/14 14:31:48, Shanmuga Pandi wrote: ...
3 years, 9 months ago (2017-03-14 14:59:36 UTC) #5
tanvir
https://codereview.chromium.org/2750833002/diff/1/third_party/WebKit/Source/core/html/TextControlElement.cpp File third_party/WebKit/Source/core/html/TextControlElement.cpp (right): https://codereview.chromium.org/2750833002/diff/1/third_party/WebKit/Source/core/html/TextControlElement.cpp#newcode648 third_party/WebKit/Source/core/html/TextControlElement.cpp:648: On 2017/03/14 14:31:48, Shanmuga Pandi wrote: > We need ...
3 years, 9 months ago (2017-03-14 15:00:31 UTC) #6
Shanmuga Pandi
Peer review looks good to me
3 years, 9 months ago (2017-03-15 04:59:52 UTC) #7
yosin_UTC9
lgtm +tkent@ for core/html changes. https://codereview.chromium.org/2750833002/diff/40001/third_party/WebKit/Source/core/html/TextControlElement.cpp File third_party/WebKit/Source/core/html/TextControlElement.cpp (right): https://codereview.chromium.org/2750833002/diff/40001/third_party/WebKit/Source/core/html/TextControlElement.cpp#newcode626 third_party/WebKit/Source/core/html/TextControlElement.cpp:626: .setIsDirectional(selectionDirection() != "none" ? ...
3 years, 9 months ago (2017-03-15 09:29:28 UTC) #12
tanvir
Updated for nit. PTAL https://codereview.chromium.org/2750833002/diff/40001/third_party/WebKit/Source/core/html/TextControlElement.cpp File third_party/WebKit/Source/core/html/TextControlElement.cpp (right): https://codereview.chromium.org/2750833002/diff/40001/third_party/WebKit/Source/core/html/TextControlElement.cpp#newcode626 third_party/WebKit/Source/core/html/TextControlElement.cpp:626: .setIsDirectional(selectionDirection() != "none" ? true ...
3 years, 9 months ago (2017-03-15 10:18:15 UTC) #13
tkent
lgtm CL description: > Update TextControlSelection selection API > > TextControlSelection is currently returning Range, ...
3 years, 9 months ago (2017-03-15 22:32:26 UTC) #18
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/2750833002/60001
3 years, 9 months ago (2017-03-16 06:45:39 UTC) #22
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 06:51:51 UTC) #25
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/e3ae803e5499bf5cc3104f06152b...

Powered by Google App Engine
This is Rietveld 408576698