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

Issue 1053123007: Invalidate paint of tickmarks on document change (Closed)

Created:
5 years, 8 months ago by Xianzhu
Modified:
5 years, 8 months ago
Reviewers:
dsinclair, chrishtr
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Invalidate paint of tickmarks on document change Invalidate paint of tickmarks are changed or removed because of document change. We missed this kind of invalidations before. Invalidation of tickmarks during find-in-page is still driven by TextFinder as before because of the throttling algorithm. BUG=477856 TEST=fast/repaint/text-match-document-change.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194054

Patch Set 1 #

Total comments: 10

Patch Set 2 : Remove m_textMatchMarkersRemovedOrChanged; invalidate directly #

Patch Set 3 : Check for null FrameView (hit when running webkit_unit_tests) #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -56 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/fast/repaint/text-match-document-change.html View 1 chunk +37 lines, -0 lines 0 comments Download
A LayoutTests/fast/repaint/text-match-document-change-expected.txt View 1 chunk +21 lines, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download
M Source/core/dom/DocumentMarkerController.cpp View 1 2 3 4 8 chunks +36 lines, -20 lines 0 comments Download
M Source/core/dom/RenderedDocumentMarker.h View 1 chunk +10 lines, -2 lines 0 comments Download
M Source/core/frame/FrameView.h View 1 2 3 4 1 chunk +7 lines, -1 line 0 comments Download
M Source/core/frame/FrameView.cpp View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M Source/web/TextFinder.cpp View 1 5 chunks +6 lines, -6 lines 0 comments Download
M Source/web/WebLocalFrameImpl.h View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 2 chunks +0 lines, -19 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Xianzhu
https://codereview.chromium.org/1053123007/diff/1/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (left): https://codereview.chromium.org/1053123007/diff/1/Source/core/dom/Document.cpp#oldcode3680 Source/core/dom/Document.cpp:3680: // Update the markers for spelling and grammar checking. ...
5 years, 8 months ago (2015-04-17 18:25:04 UTC) #2
chrishtr
https://codereview.chromium.org/1053123007/diff/1/Source/core/dom/DocumentMarkerController.cpp File Source/core/dom/DocumentMarkerController.cpp (right): https://codereview.chromium.org/1053123007/diff/1/Source/core/dom/DocumentMarkerController.cpp#newcode541 Source/core/dom/DocumentMarkerController.cpp:541: m_textMatchMarkersRemovedOrChanged = true; Why not just invalidate the tickmarks ...
5 years, 8 months ago (2015-04-17 23:21:42 UTC) #3
Xianzhu
https://codereview.chromium.org/1053123007/diff/1/Source/core/dom/DocumentMarkerController.cpp File Source/core/dom/DocumentMarkerController.cpp (right): https://codereview.chromium.org/1053123007/diff/1/Source/core/dom/DocumentMarkerController.cpp#newcode541 Source/core/dom/DocumentMarkerController.cpp:541: m_textMatchMarkersRemovedOrChanged = true; On 2015/04/17 23:21:42, chrishtr wrote: > ...
5 years, 8 months ago (2015-04-18 02:13:48 UTC) #4
chrishtr
https://codereview.chromium.org/1053123007/diff/60001/Source/core/dom/DocumentMarkerController.cpp File Source/core/dom/DocumentMarkerController.cpp (right): https://codereview.chromium.org/1053123007/diff/60001/Source/core/dom/DocumentMarkerController.cpp#newcode538 Source/core/dom/DocumentMarkerController.cpp:538: if (!node.isTextNode()) // MarkerRemoverPridicate requires a Text node. sp: ...
5 years, 8 months ago (2015-04-20 17:53:25 UTC) #5
Xianzhu
https://codereview.chromium.org/1053123007/diff/60001/Source/core/dom/DocumentMarkerController.cpp File Source/core/dom/DocumentMarkerController.cpp (right): https://codereview.chromium.org/1053123007/diff/60001/Source/core/dom/DocumentMarkerController.cpp#newcode538 Source/core/dom/DocumentMarkerController.cpp:538: if (!node.isTextNode()) // MarkerRemoverPridicate requires a Text node. On ...
5 years, 8 months ago (2015-04-20 18:13:48 UTC) #7
chrishtr
lgtm
5 years, 8 months ago (2015-04-20 18:16:43 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1053123007/100001
5 years, 8 months ago (2015-04-20 18:23:39 UTC) #10
commit-bot: I haz the power
5 years, 8 months ago (2015-04-20 21:35:39 UTC) #11
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=194054

Powered by Google App Engine
This is Rietveld 408576698