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

Issue 620553009: Move selection invalidations to the invalidation phase (Closed)

Created:
6 years, 2 months ago by Julien - ping for review
Modified:
6 years, 2 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, rune+blink, zoltan1
Project:
blink
Visibility:
Public.

Description

Move selection invalidations to the invalidation phase This change is a very simple translation of the current code: instead of generating invalidations on the fly, we just mark renderers for selection invalidations later. I am not super satisfied with this change but it removes several stale compositing queries and puts us on the path to integrating selection invalidations more tightly with the paint invalidation path. BUG=407416 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183082

Patch Set 1 #

Patch Set 2 : Added missing expectation #

Total comments: 6

Patch Set 3 : Updated change after review comments. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -23 lines) Patch
M LayoutTests/TestExpectations View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M LayoutTests/platform/win/fast/repaint/repaint-across-writing-mode-boundary-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderObject.h View 1 2 5 chunks +20 lines, -6 lines 0 comments Download
M Source/core/rendering/RenderObject.cpp View 1 2 3 chunks +15 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderSelectionInfo.h View 1 chunk +2 lines, -0 lines 1 comment Download
M Source/core/rendering/RenderText.h View 1 chunk +5 lines, -1 line 1 comment Download
M Source/core/rendering/RenderView.cpp View 7 chunks +7 lines, -15 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
Julien - ping for review
Selection -> RACUN, take I!
6 years, 2 months ago (2014-10-01 16:54:06 UTC) #2
Xianzhu
lgtm https://codereview.chromium.org/620553009/diff/20001/LayoutTests/TestExpectations File LayoutTests/TestExpectations (right): https://codereview.chromium.org/620553009/diff/20001/LayoutTests/TestExpectations#newcode354 LayoutTests/TestExpectations:354: Bug(jchaffraix) fast/repaint/repaint-across-writing-mode-boundary.html [ NeedsRebaseline ] Why don't you ...
6 years, 2 months ago (2014-10-01 17:04:06 UTC) #3
dsinclair
https://codereview.chromium.org/620553009/diff/20001/Source/core/rendering/RenderObject.cpp File Source/core/rendering/RenderObject.cpp (right): https://codereview.chromium.org/620553009/diff/20001/Source/core/rendering/RenderObject.cpp#newcode1281 Source/core/rendering/RenderObject.cpp:1281: void RenderObject::invalidateSelectionIfNeeded(const RenderLayerModelObject& paintInvalidationContainer) const Should this be non-const? ...
6 years, 2 months ago (2014-10-01 17:13:32 UTC) #4
Julien - ping for review
Thanks for the prompt reviews! https://codereview.chromium.org/620553009/diff/20001/LayoutTests/TestExpectations File LayoutTests/TestExpectations (right): https://codereview.chromium.org/620553009/diff/20001/LayoutTests/TestExpectations#newcode354 LayoutTests/TestExpectations:354: Bug(jchaffraix) fast/repaint/repaint-across-writing-mode-boundary.html [ NeedsRebaseline ...
6 years, 2 months ago (2014-10-01 18:18:22 UTC) #5
dsinclair
lgtm
6 years, 2 months ago (2014-10-01 18:22:04 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/620553009/40001
6 years, 2 months ago (2014-10-01 19:41:26 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 183082
6 years, 2 months ago (2014-10-01 19:56:53 UTC) #9
yoichio
https://codereview.chromium.org/620553009/diff/40001/Source/core/rendering/RenderText.h File Source/core/rendering/RenderText.h (right): https://codereview.chromium.org/620553009/diff/40001/Source/core/rendering/RenderText.h#newcode186 Source/core/rendering/RenderText.h:186: // The parent invalidates for RenderText, so RenderText does ...
6 years, 2 months ago (2014-10-02 01:49:03 UTC) #11
yosin_UTC9
Thanks for re-structuring! BTW, I would like to introduce |RenderSelection| class to move selection rendering ...
6 years, 2 months ago (2014-10-02 02:18:28 UTC) #12
Julien - ping for review
6 years, 2 months ago (2014-10-15 14:51:25 UTC) #13
Message was sent while issue was closed.
On 2014/10/02 at 02:18:28, yosin wrote:
> Thanks for re-structuring!
> 
> BTW, I would like to introduce |RenderSelection| class to move selection
rendering from |RenderView|. 
> 
> WDYTH?

Sorry for the delay, I completely missed the question (thank Dan as he pointed
this out :)).

That's a great idea. I would love for the selection code to self-contained.

Powered by Google App Engine
This is Rietveld 408576698