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

Issue 2293293003: Make CaretBase a DisplayItemClient. (Closed)

Created:
4 years, 3 months ago by wkorman
Modified:
4 years, 3 months ago
Reviewers:
chrishtr
CC:
blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, slimming-paint-reviews_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make CaretBase a DisplayItemClient. From chrishtr@'s http://crrev.com/2296203002 with test added. Fixes caret invalidation in textarea where caret is scrolled outside of visible textarea rect. BUG=634094 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/5153d9b53989b32068b7759aa0253a1e5662492a Cr-Commit-Position: refs/heads/master@{#416191}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix caret invalidation when style changes. Update test expectations. #

Total comments: 2

Patch Set 3 : Update docs and sync to head. #

Patch Set 4 : Fix unit test and disable failing test on SPv2. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -57 lines) Patch
M third_party/WebKit/LayoutTests/FlagExpectations/enable-slimming-paint-v2 View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/relayout-shifts-inner-editor.html View 1 2 chunks +4 lines, -4 lines 0 comments Download
A third_party/WebKit/LayoutTests/paint/invalidation/textarea-caret.html View 1 chunk +11 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/paint/invalidation/textarea-caret-expected.png View Binary file 0 comments Download
A + third_party/WebKit/LayoutTests/paint/invalidation/textarea-caret-expected.txt View 2 chunks +31 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/editing/CaretBase.h View 1 2 3 2 chunks +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/CaretBase.cpp View 1 2 5 chunks +13 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameCaret.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/FrameCaret.cpp View 1 2 3 chunks +9 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelection.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelection.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlock.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlock.cpp View 1 2 chunks +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.h View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp View 2 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintControllerPaintTest.cpp View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (12 generated)
wkorman
If you're feeling lazy, this integrated your patch with the test. Using this as an ...
4 years, 3 months ago (2016-08-31 21:10:40 UTC) #3
chrishtr
https://codereview.chromium.org/2293293003/diff/1/third_party/WebKit/Source/core/paint/BlockPainter.cpp File third_party/WebKit/Source/core/paint/BlockPainter.cpp (right): https://codereview.chromium.org/2293293003/diff/1/third_party/WebKit/Source/core/paint/BlockPainter.cpp#newcode197 third_party/WebKit/Source/core/paint/BlockPainter.cpp:197: // LOG(ERROR) << "Painting caret [bounds=" << bounds.toString() << ...
4 years, 3 months ago (2016-09-01 15:00:13 UTC) #4
wkorman
https://codereview.chromium.org/2293293003/diff/1/third_party/WebKit/Source/core/paint/BlockPainter.cpp File third_party/WebKit/Source/core/paint/BlockPainter.cpp (right): https://codereview.chromium.org/2293293003/diff/1/third_party/WebKit/Source/core/paint/BlockPainter.cpp#newcode197 third_party/WebKit/Source/core/paint/BlockPainter.cpp:197: // LOG(ERROR) << "Painting caret [bounds=" << bounds.toString() << ...
4 years, 3 months ago (2016-09-01 23:40:41 UTC) #5
wkorman
For the record, most recent patchset includes changes to FrameCaret and LayoutBlock to fix: paint/invalidation/caret-color.html ...
4 years, 3 months ago (2016-09-01 23:43:49 UTC) #8
chrishtr
lgtm LGTM with nit fixed. https://codereview.chromium.org/2293293003/diff/20001/third_party/WebKit/Source/core/editing/FrameCaret.h File third_party/WebKit/Source/core/editing/FrameCaret.h (right): https://codereview.chromium.org/2293293003/diff/20001/third_party/WebKit/Source/core/editing/FrameCaret.h#newcode55 third_party/WebKit/Source/core/editing/FrameCaret.h:55: void invalidateCaretRect(bool forceInvalidation); Document ...
4 years, 3 months ago (2016-09-01 23:45:58 UTC) #11
wkorman
https://codereview.chromium.org/2293293003/diff/20001/third_party/WebKit/Source/core/editing/FrameCaret.h File third_party/WebKit/Source/core/editing/FrameCaret.h (right): https://codereview.chromium.org/2293293003/diff/20001/third_party/WebKit/Source/core/editing/FrameCaret.h#newcode55 third_party/WebKit/Source/core/editing/FrameCaret.h:55: void invalidateCaretRect(bool forceInvalidation); On 2016/09/01 23:45:58, chrishtr wrote: > ...
4 years, 3 months ago (2016-09-02 00:02:46 UTC) #12
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/2293293003/40001
4 years, 3 months ago (2016-09-02 00:03:25 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_layout_tests_slimming_paint_v2 on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_layout_tests_slimming_paint_v2/builds/292)
4 years, 3 months ago (2016-09-02 00:57:24 UTC) #17
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/2293293003/60001
4 years, 3 months ago (2016-09-02 03:41:46 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-02 05:19:15 UTC) #21
commit-bot: I haz the power
4 years, 3 months ago (2016-09-02 05:20:39 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/5153d9b53989b32068b7759aa0253a1e5662492a
Cr-Commit-Position: refs/heads/master@{#416191}

Powered by Google App Engine
This is Rietveld 408576698