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

Issue 2765763002: Fix inline focus ring paint invalidation on continuation change (Closed)

Created:
3 years, 9 months ago by Xianzhu
Modified:
3 years, 9 months ago
Reviewers:
pdr., wkorman
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, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix inline focus ring paint invalidation on continuation change An inline element's focus ring encloses its block and inline continuations. The previous method handled invalidation of display item client only, not rectangles covering the changed inlines. Now call setMayNeedPaintInvalidation() on the inline whose block continuations are marked needsPaintOffsetAndVisualRectUpdate(). Also noticed a focus ring painting bug (crbug.com/703403) and added a test case. Will fix later. BUG=704243, 703403 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2765763002 Cr-Commit-Position: refs/heads/master@{#458895} Committed: https://chromium.googlesource.com/chromium/src/+/437d0b9a1fbd7345b234e54e09716f501c37ccb8

Patch Set 1 #

Patch Set 2 : Rebaseline-cl #

Patch Set 3 #

Total comments: 10

Patch Set 4 : - #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+461 lines, -67 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/paint/inline/focus-ring-under-absolute-with-relative-continuation.html View 1 chunk +7 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/paint/inline/focus-ring-under-absolute-with-relative-continuation-expected.html View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/focus-ring-on-continuation-move.html View 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/focus-ring-on-continuation-move-expected.html View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/focus-ring-on-continuation-move-expected.txt View 2 chunks +16 lines, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/paint/invalidation/focus-ring-on-inline-continuation-move.html View 1 chunk +12 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/paint/invalidation/focus-ring-on-inline-continuation-move-expected.html View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/focus-enable-continuations-expected.txt View 1 chunk +0 lines, -4 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/focus-ring-on-inline-continuation-move-expected.txt View 1 1 chunk +54 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/focus-enable-continuations-expected.txt View 1 1 chunk +0 lines, -4 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/focus-ring-on-inline-continuation-move-expected.txt View 1 1 chunk +64 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/focus-enable-continuations-expected.txt View 1 1 chunk +0 lines, -4 lines 0 comments Download
A + third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/focus-ring-on-continuation-move-expected.txt View 1 2 chunks +16 lines, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/focus-ring-on-inline-continuation-move-expected.txt View 1 1 chunk +54 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/focus-enable-continuations-expected.txt View 1 1 chunk +0 lines, -4 lines 0 comments Download
A + third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/focus-ring-on-continuation-move-expected.txt View 1 2 chunks +16 lines, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/focus-ring-on-inline-continuation-move-expected.txt View 1 1 chunk +64 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/paint/invalidation/focus-enable-continuations-expected.txt View 1 1 chunk +0 lines, -4 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/win/paint/invalidation/focus-ring-on-inline-continuation-move-expected.txt View 1 1 chunk +54 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/focus-enable-continuations-expected.txt View 1 1 chunk +0 lines, -4 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/focus-ring-on-inline-continuation-move-expected.txt View 1 1 chunk +64 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 3 1 chunk +21 lines, -5 lines 3 comments Download
M third_party/WebKit/Source/core/paint/BlockFlowPaintInvalidator.cpp View 1 chunk +0 lines, -23 lines 0 comments Download

Messages

Total messages: 28 (18 generated)
Xianzhu
3 years, 9 months ago (2017-03-21 15:42:10 UTC) #7
pdr.
https://codereview.chromium.org/2765763002/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2765763002/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode3427 third_party/WebKit/Source/core/layout/LayoutObject.cpp:3427: object = object->paintInvalidationParent()) { Do we need to invalidate ...
3 years, 9 months ago (2017-03-21 18:40:49 UTC) #10
wkorman
https://codereview.chromium.org/2765763002/diff/40001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/2765763002/diff/40001/third_party/WebKit/LayoutTests/TestExpectations#newcode148 third_party/WebKit/LayoutTests/TestExpectations:148: crbug.com/703403 paint/inline/focus-ring-under-absolute-with-relative-continuation.html [ Failure ] http://crbug.com/700523 looks fixed, try ...
3 years, 9 months ago (2017-03-21 19:31:52 UTC) #13
Xianzhu
https://codereview.chromium.org/2765763002/diff/40001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/2765763002/diff/40001/third_party/WebKit/LayoutTests/TestExpectations#newcode148 third_party/WebKit/LayoutTests/TestExpectations:148: crbug.com/703403 paint/inline/focus-ring-under-absolute-with-relative-continuation.html [ Failure ] On 2017/03/21 19:31:52, wkorman ...
3 years, 9 months ago (2017-03-22 02:46:08 UTC) #16
wkorman
lgtm https://codereview.chromium.org/2765763002/diff/40001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/2765763002/diff/40001/third_party/WebKit/LayoutTests/TestExpectations#newcode148 third_party/WebKit/LayoutTests/TestExpectations:148: crbug.com/703403 paint/inline/focus-ring-under-absolute-with-relative-continuation.html [ Failure ] On 2017/03/22 02:46:07, ...
3 years, 9 months ago (2017-03-22 18:10:56 UTC) #19
Xianzhu
https://codereview.chromium.org/2765763002/diff/40001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/2765763002/diff/40001/third_party/WebKit/LayoutTests/TestExpectations#newcode148 third_party/WebKit/LayoutTests/TestExpectations:148: crbug.com/703403 paint/inline/focus-ring-under-absolute-with-relative-continuation.html [ Failure ] On 2017/03/22 18:10:56, wkorman ...
3 years, 9 months ago (2017-03-22 19:18:13 UTC) #21
pdr.
On 2017/03/22 at 19:18:13, wangxianzhu wrote: > https://codereview.chromium.org/2765763002/diff/40001/third_party/WebKit/LayoutTests/TestExpectations > File third_party/WebKit/LayoutTests/TestExpectations (right): > > https://codereview.chromium.org/2765763002/diff/40001/third_party/WebKit/LayoutTests/TestExpectations#newcode148 ...
3 years, 9 months ago (2017-03-22 20:05:17 UTC) #22
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/2765763002/30025
3 years, 9 months ago (2017-03-22 20:06:58 UTC) #24
wkorman
https://codereview.chromium.org/2765763002/diff/30025/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2765763002/diff/30025/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode3432 third_party/WebKit/Source/core/layout/LayoutObject.cpp:3432: // Mark the start object for paint invalidation if ...
3 years, 9 months ago (2017-03-22 20:28:54 UTC) #25
commit-bot: I haz the power
3 years, 9 months ago (2017-03-22 22:19:53 UTC) #28
Message was sent while issue was closed.
Committed patchset #4 (id:30025) as
https://chromium.googlesource.com/chromium/src/+/437d0b9a1fbd7345b234e54e0971...

Powered by Google App Engine
This is Rietveld 408576698