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

Issue 834173003: Change about caret painting in slimming paint mode (Closed)

Created:
5 years, 11 months ago by Xianzhu
Modified:
5 years, 11 months ago
Reviewers:
chrishtr, pdr.
CC:
blink-reviews, blink-reviews-paint_chromium.org, blink-reviews-rendering, Rik, danakj, Dominik Röttsches, krit, eae+blinkwatch, f(malita), jbroman, jchaffraix+rendering, leviw+renderwatch, pdr+graphicswatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rwlbuis, Stephen Chennney, slimming-paint-reviews_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Change about caret painting in slimming paint mode - To avoid DisplayItemList from being confused by caret display items originally with PaintPhaseForeground phase, add PaintPhaseCaret for carets; - Issue display item for caret only when the object has caret. This avoids too many dummy display items for carets for blocks that don't have carets; (Originally we also output dummy display items for carets in different order when an object's layer status changes but there is no invalidation. This change also avoid this issue.) - Remove ASSERT(displayList.size()) because we may result empty display list if nothing needs painting. BUG=444163, 441108 TEST=fast/text/caret-crash.html TEST=fast/layers/layer-status-change-crash.html TEST=ViewDisplayListTest.FullDocumentPaintingWithCaret Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187933

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -3 lines) Patch
A LayoutTests/fast/layers/layer-status-change-crash.html View 1 1 chunk +22 lines, -0 lines 0 comments Download
A LayoutTests/fast/layers/layer-status-change-crash-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
A LayoutTests/fast/text/caret-crash.html View 1 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/fast/text/caret-crash-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/paint/BlockPainter.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/paint/ViewDisplayListTest.cpp View 1 3 chunks +39 lines, -0 lines 0 comments Download
M Source/core/rendering/PaintInfo.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/PaintPhase.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/graphics/ContentLayerDelegate.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M Source/platform/graphics/paint/DisplayItem.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/graphics/paint/DisplayItem.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (2 generated)
Xianzhu
Unit test is still under WIP.
5 years, 11 months ago (2015-01-05 22:59:17 UTC) #2
pdr.
I think this is a good approach. I had a testcase for this bug in ...
5 years, 11 months ago (2015-01-05 23:02:19 UTC) #3
pdr.
On 2015/01/05 at 23:02:19, pdr wrote: > I think this is a good approach. > ...
5 years, 11 months ago (2015-01-05 23:03:04 UTC) #4
chrishtr
What is the exact scenario here? Carets are painted but the render object is not ...
5 years, 11 months ago (2015-01-05 23:24:39 UTC) #5
Xianzhu
On 2015/01/05 23:24:39, chrishtr wrote: > What is the exact scenario here? Carets are painted ...
5 years, 11 months ago (2015-01-05 23:50:27 UTC) #6
chrishtr
On 2015/01/05 at 23:50:27, wangxianzhu wrote: > On 2015/01/05 23:24:39, chrishtr wrote: > > What ...
5 years, 11 months ago (2015-01-06 01:20:09 UTC) #7
Xianzhu
On 2015/01/06 01:20:09, chrishtr wrote: > On 2015/01/05 at 23:50:27, wangxianzhu wrote: > > On ...
5 years, 11 months ago (2015-01-06 01:30:08 UTC) #8
Xianzhu
About original number of dummy display items for non-existence carets: we have one for each ...
5 years, 11 months ago (2015-01-06 17:23:52 UTC) #9
chrishtr
On 2015/01/06 at 01:30:08, wangxianzhu wrote: > On 2015/01/06 01:20:09, chrishtr wrote: > > On ...
5 years, 11 months ago (2015-01-06 17:29:33 UTC) #10
Xianzhu
On 2015/01/06 17:29:33, chrishtr wrote: > On 2015/01/06 at 01:30:08, wangxianzhu wrote: > > On ...
5 years, 11 months ago (2015-01-06 17:34:22 UTC) #11
chrishtr
On 2015/01/06 at 17:34:22, wangxianzhu wrote: > On 2015/01/06 17:29:33, chrishtr wrote: > > On ...
5 years, 11 months ago (2015-01-06 17:37:17 UTC) #12
Xianzhu
Added tests. PTAL.
5 years, 11 months ago (2015-01-06 19:20:44 UTC) #13
chrishtr
lgtm
5 years, 11 months ago (2015-01-06 19:25:47 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/834173003/20001
5 years, 11 months ago (2015-01-06 19:26:47 UTC) #16
commit-bot: I haz the power
5 years, 11 months ago (2015-01-06 20:47:39 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=187933

Powered by Google App Engine
This is Rietveld 408576698