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

Issue 1955423004: Include selection rect in paint invalidation for LayoutText. (Closed)

Created:
4 years, 7 months ago by wkorman
Modified:
4 years, 7 months ago
Reviewers:
chrishtr, Xianzhu, eae
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Include selection rect in paint invalidation for LayoutText. This change is intended to fix the paint invalidation rect, and thus the visual rect, as part of the linked bug http://crbug.com/605319 spun out of http://crbug.com/529938. There is more explanation of the intended use of visual rects in my comment at http://crbug.com/604883#c5 The visual rects that are incorrect without this change are not currently used by live code, but will be used as part of http://crrev.com/1484163002. This change fixes about 15 LayoutTests with that patch applied, mainly under editing. BUG=605319 Committed: https://crrev.com/76f9a545cdf9903cded65e98b616a14976428aa8 Cr-Commit-Position: refs/heads/master@{#394807}

Patch Set 1 #

Patch Set 2 : Reworking to cover more cases. #

Patch Set 3 : Rebaseline tests. #

Total comments: 8

Patch Set 4 : Document logical height mutation. #

Patch Set 5 : Feedback. #

Patch Set 6 : Add expectations, simplify uniting. #

Patch Set 7 : Sync to head and add one test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -3 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutText.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/BoxClipper.cpp View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 33 (13 generated)
wkorman
Background for eae@ or others: This change is intended to fix the paint invalidation rect, ...
4 years, 7 months ago (2016-05-10 20:31:45 UTC) #3
Xianzhu
https://codereview.chromium.org/1955423004/diff/40001/third_party/WebKit/Source/core/layout/LayoutText.cpp File third_party/WebKit/Source/core/layout/LayoutText.cpp (right): https://codereview.chromium.org/1955423004/diff/40001/third_party/WebKit/Source/core/layout/LayoutText.cpp#newcode1579 third_party/WebKit/Source/core/layout/LayoutText.cpp:1579: } Should LayoutText::localSelectionRect() also have this logic?
4 years, 7 months ago (2016-05-10 20:35:46 UTC) #5
eae
Could you please add the description/background from your first comment into the CL description? https://codereview.chromium.org/1955423004/diff/40001/third_party/WebKit/Source/core/layout/LayoutText.cpp ...
4 years, 7 months ago (2016-05-10 20:39:19 UTC) #6
wkorman
https://codereview.chromium.org/1955423004/diff/40001/third_party/WebKit/Source/core/layout/LayoutText.cpp File third_party/WebKit/Source/core/layout/LayoutText.cpp (right): https://codereview.chromium.org/1955423004/diff/40001/third_party/WebKit/Source/core/layout/LayoutText.cpp#newcode1579 third_party/WebKit/Source/core/layout/LayoutText.cpp:1579: } On 2016/05/10 at 20:35:46, Xianzhu wrote: > Should ...
4 years, 7 months ago (2016-05-10 20:41:09 UTC) #7
Xianzhu
https://codereview.chromium.org/1955423004/diff/40001/third_party/WebKit/Source/core/layout/LayoutText.cpp File third_party/WebKit/Source/core/layout/LayoutText.cpp (right): https://codereview.chromium.org/1955423004/diff/40001/third_party/WebKit/Source/core/layout/LayoutText.cpp#newcode1579 third_party/WebKit/Source/core/layout/LayoutText.cpp:1579: } On 2016/05/10 20:41:08, wkorman wrote: > On 2016/05/10 ...
4 years, 7 months ago (2016-05-10 21:10:46 UTC) #10
Xianzhu
https://codereview.chromium.org/1955423004/diff/40001/third_party/WebKit/Source/core/layout/LayoutText.cpp File third_party/WebKit/Source/core/layout/LayoutText.cpp (right): https://codereview.chromium.org/1955423004/diff/40001/third_party/WebKit/Source/core/layout/LayoutText.cpp#newcode1579 third_party/WebKit/Source/core/layout/LayoutText.cpp:1579: } On 2016/05/10 21:10:46, Xianzhu wrote: > On 2016/05/10 ...
4 years, 7 months ago (2016-05-10 21:13:56 UTC) #11
wkorman
https://codereview.chromium.org/1955423004/diff/40001/third_party/WebKit/Source/core/layout/LayoutText.cpp File third_party/WebKit/Source/core/layout/LayoutText.cpp (right): https://codereview.chromium.org/1955423004/diff/40001/third_party/WebKit/Source/core/layout/LayoutText.cpp#newcode1578 third_party/WebKit/Source/core/layout/LayoutText.cpp:1578: logicalHeight = std::max(logicalHeight, localSelectionRect().height()); On 2016/05/10 at 20:39:19, eae ...
4 years, 7 months ago (2016-05-10 21:33:01 UTC) #12
eae
On 2016/05/10 21:33:01, wkorman wrote: > https://codereview.chromium.org/1955423004/diff/40001/third_party/WebKit/Source/core/layout/LayoutText.cpp > File third_party/WebKit/Source/core/layout/LayoutText.cpp (right): > > https://codereview.chromium.org/1955423004/diff/40001/third_party/WebKit/Source/core/layout/LayoutText.cpp#newcode1578 > ...
4 years, 7 months ago (2016-05-10 21:39:08 UTC) #13
Xianzhu
https://codereview.chromium.org/1955423004/diff/40001/third_party/WebKit/Source/core/layout/LayoutText.cpp File third_party/WebKit/Source/core/layout/LayoutText.cpp (right): https://codereview.chromium.org/1955423004/diff/40001/third_party/WebKit/Source/core/layout/LayoutText.cpp#newcode1579 third_party/WebKit/Source/core/layout/LayoutText.cpp:1579: } On 2016/05/10 21:33:01, wkorman wrote: > On 2016/05/10 ...
4 years, 7 months ago (2016-05-10 21:55:13 UTC) #14
wkorman
On 2016/05/10 at 21:55:13, wangxianzhu wrote: > https://codereview.chromium.org/1955423004/diff/40001/third_party/WebKit/Source/core/layout/LayoutText.cpp > File third_party/WebKit/Source/core/layout/LayoutText.cpp (right): > > https://codereview.chromium.org/1955423004/diff/40001/third_party/WebKit/Source/core/layout/LayoutText.cpp#newcode1579 ...
4 years, 7 months ago (2016-05-18 22:22:00 UTC) #15
Xianzhu
On 2016/05/18 22:22:00, wkorman wrote: > On 2016/05/10 at 21:55:13, wangxianzhu wrote: > > > ...
4 years, 7 months ago (2016-05-18 22:34:44 UTC) #16
chrishtr
On 2016/05/18 at 22:34:44, wangxianzhu wrote: > On 2016/05/18 22:22:00, wkorman wrote: > > On ...
4 years, 7 months ago (2016-05-18 23:35:21 UTC) #17
chrishtr
Please update the comment in BoxClipper.cpp to say: // Selection may extend beyond visual overflow, ...
4 years, 7 months ago (2016-05-18 23:44:16 UTC) #18
wkorman
Revised for (3) as discussed previously, updated change description, updated BoxClipper comment, added test expectations. ...
4 years, 7 months ago (2016-05-19 01:56:47 UTC) #21
Xianzhu
lgtm
4 years, 7 months ago (2016-05-19 02:21:00 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1955423004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1955423004/100001
4 years, 7 months ago (2016-05-19 03:36:11 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/224675)
4 years, 7 months ago (2016-05-19 07:50:58 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1955423004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1955423004/120001
4 years, 7 months ago (2016-05-19 15:41:03 UTC) #30
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 7 months ago (2016-05-19 17:35:36 UTC) #31
commit-bot: I haz the power
4 years, 7 months ago (2016-05-19 17:38:10 UTC) #33
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/76f9a545cdf9903cded65e98b616a14976428aa8
Cr-Commit-Position: refs/heads/master@{#394807}

Powered by Google App Engine
This is Rietveld 408576698