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

Issue 2450793002: Call invalidatePaintForTickmarks() in Internals::addTextMatchMarker() (Closed)

Created:
4 years, 1 month ago by hiroshige
Modified:
4 years, 1 month ago
Reviewers:
Xianzhu
CC:
chromium-reviews, blink-reviews, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Call invalidatePaintForTickmarks() in Internals::addTextMatchMarker() Callers of DocumentMarkerController::addTextMatchMarker() must invalidate tickmarks (according a comment in addTextMatchMarker()) but Internals::addTextMatchMarker() doesn't invalidate the tickmark. This causes the fast/scrolling/scrollbar-tickmarks-styled.html test to fail if internals.addTextMatchMarker() is called after the first layout. This CL makes addTextMatchMarker() to do paint invalidation, just like TextFinder does in TextFinder::invalidateIfNecessary and TextFinder::finishCurrentScopingEffort(). This CL adds fast/scrolling/scrollbar-tickmarks-styled-after-onload.html that tests internals.addTextMatchMarker() after the first layout and document onload. (the test is marked as failing in rootlayerscrolls because the original scrollbar-tickmarks-styled.html is already marked as failing.) This is preparation for https://codereview.chromium.org/2269043002 that modifies the timing of document onload event and moves document onload after first layout in the test above. BUG=624697 TEST=fast/scrolling/scrollbar-tickmarks-styled.html fast/scrolling/scrollbar-tickmarks-styled-after-onload.html Committed: https://crrev.com/f768d0e471877996cf0dd06f2a3b1cb9ba49c6be Cr-Commit-Position: refs/heads/master@{#429841}

Patch Set 1 #

Patch Set 2 : Fix #

Patch Set 3 : Rebase. #

Patch Set 4 : f #

Patch Set 5 : TestExpectations #

Total comments: 3

Patch Set 6 : runAfterLayoutAndPaint #

Total comments: 2

Patch Set 7 : Add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M third_party/WebKit/LayoutTests/FlagExpectations/root-layer-scrolls View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled-after-onload.html View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled-after-onload-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/platform/mac/fast/scrolling/scrollbar-tickmarks-styled-after-onload-expected.png View Binary file 0 comments Download
A + third_party/WebKit/LayoutTests/platform/mac/virtual/scroll_customization/fast/scrolling/scrollbar-tickmarks-styled-after-onload-expected.png View Binary file 0 comments Download
A + third_party/WebKit/LayoutTests/platform/win/fast/scrolling/scrollbar-tickmarks-styled-after-onload-expected.png View Binary file 0 comments Download
A + third_party/WebKit/LayoutTests/platform/win/virtual/scroll_customization/fast/scrolling/scrollbar-tickmarks-styled-after-onload-expected.png View Binary file 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 57 (45 generated)
hiroshige
Could you take a look? (as you looks touched some related areas)
4 years, 1 month ago (2016-10-31 09:38:22 UTC) #22
Xianzhu
https://codereview.chromium.org/2450793002/diff/120001/third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled-after-onload.html File third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled-after-onload.html (right): https://codereview.chromium.org/2450793002/diff/120001/third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled-after-onload.html#newcode44 third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled-after-onload.html:44: <body onload="setTimeout(highlight, 0)"> Normally we use runAfterLayoutAndPaint(highlight, true) (requiring ...
4 years, 1 month ago (2016-10-31 15:59:07 UTC) #25
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/2450793002/140002
4 years, 1 month ago (2016-11-01 05:45:44 UTC) #33
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 1 month ago (2016-11-01 05:45:46 UTC) #35
hiroshige
https://codereview.chromium.org/2450793002/diff/120001/third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled-after-onload.html File third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled-after-onload.html (right): https://codereview.chromium.org/2450793002/diff/120001/third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled-after-onload.html#newcode44 third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled-after-onload.html:44: <body onload="setTimeout(highlight, 0)"> On 2016/10/31 15:59:07, Xianzhu wrote: > ...
4 years, 1 month ago (2016-11-01 05:48:04 UTC) #36
Xianzhu
https://codereview.chromium.org/2450793002/diff/120001/third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled-after-onload.html File third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled-after-onload.html (right): https://codereview.chromium.org/2450793002/diff/120001/third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled-after-onload.html#newcode44 third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled-after-onload.html:44: <body onload="setTimeout(highlight, 0)"> On 2016/11/01 05:48:04, hiroshige wrote: > ...
4 years, 1 month ago (2016-11-01 06:41:22 UTC) #39
Xianzhu
All trybots passed with your patch, so your patch fixed the under-invalidation. lgtm.
4 years, 1 month ago (2016-11-01 15:56:14 UTC) #42
Xianzhu
> > BTW, does/will your patch fix scrollbar-tickmarks-styled.html? > Please ignore this. I thought the ...
4 years, 1 month ago (2016-11-01 15:58:30 UTC) #43
hiroshige
https://codereview.chromium.org/2450793002/diff/140002/third_party/WebKit/Source/core/testing/Internals.cpp File third_party/WebKit/Source/core/testing/Internals.cpp (right): https://codereview.chromium.org/2450793002/diff/140002/third_party/WebKit/Source/core/testing/Internals.cpp#newcode994 third_party/WebKit/Source/core/testing/Internals.cpp:994: range->ownerDocument().view()->invalidatePaintForTickmarks(); On 2016/11/01 06:41:22, Xianzhu wrote: > Please add ...
4 years, 1 month ago (2016-11-04 09:28:06 UTC) #50
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/2450793002/160001
4 years, 1 month ago (2016-11-04 09:28:28 UTC) #53
commit-bot: I haz the power
Committed patchset #7 (id:160001)
4 years, 1 month ago (2016-11-04 09:33:54 UTC) #55
commit-bot: I haz the power
4 years, 1 month ago (2016-11-04 09:35:25 UTC) #57
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/f768d0e471877996cf0dd06f2a3b1cb9ba49c6be
Cr-Commit-Position: refs/heads/master@{#429841}

Powered by Google App Engine
This is Rietveld 408576698