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

Issue 2401363003: Use anchor node, rather than current selected node, to check editability. (Closed)

Created:
4 years, 2 months ago by wkorman
Modified:
3 years, 8 months ago
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use anchor node, rather than current selected node, to check editability. BUG=645665 Committed: https://crrev.com/c0d0bd4e6f7e38c0208b78b2df9750ba7b0ceb0d Cr-Commit-Position: refs/heads/master@{#424790}

Patch Set 1 #

Patch Set 2 : Sync to head. #

Patch Set 3 : Make sure nodes aren't null. #

Patch Set 4 : Add expectations. #

Patch Set 5 : Fix guard on mapping rect. #

Total comments: 2

Patch Set 6 : Feedback. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -31 lines) Patch
A third_party/WebKit/LayoutTests/editing/input/caret-read-only-after-editable.html View 1 1 chunk +33 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/editing/input/caret-read-only-after-editable-expected.png View 1 2 3 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/editing/input/caret-read-only-after-editable-expected.txt View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/4776765-expected.txt View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/selection-after-delete-expected.txt View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/editing/input/caret-read-only-after-editable-expected.png View 1 2 3 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/editing/input/caret-read-only-after-editable-expected.txt View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/4776765-expected.txt View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/selection-after-delete-expected.txt View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/win/editing/input/caret-read-only-after-editable-expected.png View 1 2 3 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/win/editing/input/caret-read-only-after-editable-expected.txt View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/paint/invalidation/4776765-expected.txt View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/paint/invalidation/selection-after-delete-expected.txt View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameCaret.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameCaret.cpp View 1 2 3 4 5 6 chunks +30 lines, -10 lines 1 comment Download

Messages

Total messages: 29 (17 generated)
wkorman
The added test crashes at ToT with an under-invalidation, and passes with patch. I believe ...
4 years, 2 months ago (2016-10-10 19:32:39 UTC) #2
yoichio
Many editing layout tests failure on bot.
4 years, 2 months ago (2016-10-11 04:26:52 UTC) #7
wkorman
On 2016/10/11 04:26:52, yoichio wrote: > Many editing layout tests failure on bot. Sorry, in ...
4 years, 2 months ago (2016-10-11 05:37:29 UTC) #8
wkorman
On 2016/10/11 05:37:29, wkorman wrote: > On 2016/10/11 04:26:52, yoichio wrote: > > Many editing ...
4 years, 2 months ago (2016-10-11 07:09:52 UTC) #11
Xianzhu
https://codereview.chromium.org/2401363003/diff/80001/third_party/WebKit/Source/core/editing/FrameCaret.cpp File third_party/WebKit/Source/core/editing/FrameCaret.cpp (right): https://codereview.chromium.org/2401363003/diff/80001/third_party/WebKit/Source/core/editing/FrameCaret.cpp#newcode254 third_party/WebKit/Source/core/editing/FrameCaret.cpp:254: m_previousCaretAnchorNode = nullptr; Do you also need to do ...
4 years, 2 months ago (2016-10-11 15:51:25 UTC) #14
wkorman
https://codereview.chromium.org/2401363003/diff/80001/third_party/WebKit/Source/core/editing/FrameCaret.cpp File third_party/WebKit/Source/core/editing/FrameCaret.cpp (right): https://codereview.chromium.org/2401363003/diff/80001/third_party/WebKit/Source/core/editing/FrameCaret.cpp#newcode254 third_party/WebKit/Source/core/editing/FrameCaret.cpp:254: m_previousCaretAnchorNode = nullptr; On 2016/10/11 15:51:24, Xianzhu wrote: > ...
4 years, 2 months ago (2016-10-11 18:13:00 UTC) #15
Xianzhu
lgtm
4 years, 2 months ago (2016-10-11 18:15:49 UTC) #18
wkorman
+yosin for core/editing OWNERS.
4 years, 2 months ago (2016-10-11 18:43:34 UTC) #20
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/2401363003/80002
4 years, 2 months ago (2016-10-12 18:04:20 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:80002)
4 years, 2 months ago (2016-10-12 18:25:56 UTC) #25
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/c0d0bd4e6f7e38c0208b78b2df9750ba7b0ceb0d Cr-Commit-Position: refs/heads/master@{#424790}
4 years, 2 months ago (2016-10-12 18:29:02 UTC) #27
yosin_UTC9
4 years, 2 months ago (2016-10-13 03:58:48 UTC) #29
Message was sent while issue was closed.
Sorry for late response.

I'll work this during new caret architecture by lazy visible canonicalization:
http://crrev.com/1958093002

https://codereview.chromium.org/2401363003/diff/80002/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/editing/FrameCaret.cpp (right):

https://codereview.chromium.org/2401363003/diff/80002/third_party/WebKit/Sour...
third_party/WebKit/Source/core/editing/FrameCaret.cpp:165: Node* newAnchorNode =
I think we should use layout object associated DisplayItem passed to
CaretBase::paintCaret(),
since actual painting will be done that.

Anyway, I'll visit again for http://crrev.com/1958093002

Powered by Google App Engine
This is Rietveld 408576698