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

Issue 398343003: Use unified invalidation path for repaint-only style changes (Closed)

Created:
6 years, 5 months ago by Xianzhu
Modified:
6 years, 4 months ago
CC:
blink-reviews, blink-reviews-rendering, krit, eae+blinkwatch, ed+blinkwatch_opera.com, f(malita), fs, gyuyoung.kim_webkit.org, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, pdr., rwlbuis, rune+blink, Stephen Chennney, zoltan1
Project:
blink
Visibility:
Public.

Description

Use unified invalidation path for repaint-only style changes Use setShouldDoFullPaintInvalidation() for repaint-only style change to avoid paintInvalidationForWholeRenderer() if possible. Remaining issues: - crbug.com/394133: for objects that don't invalidate themselves in invalidateTreeIfNeeded(), we still need to call paintInvalidationForWholeRenderer(); About tests: - Some previous duplicated repaints are combined. - Several test (e.g. fast/repaint/vertical-overflow-parent.html) have extra invalidations for some scrollbar area. They will be eliminated after bug 394833 is fixed. - Some layer related tests had under-repaint previously. This is fixed by this change. BUG=394004, 394050 TEST=See "About tests" above.

Patch Set 1 #

Total comments: 12

Patch Set 2 : Fix under-paint for style-only change in old invalidation path #

Patch Set 3 : Rebase #

Patch Set 4 : Update naming #

Total comments: 2

Patch Set 5 : Based on split changes #

Patch Set 6 : Rebase #

Patch Set 7 : Also handle layers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -20 lines) Patch
M Source/core/rendering/RenderLayer.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderLayer.cpp View 1 2 3 4 5 6 1 chunk +15 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderLayerModelObject.cpp View 1 2 3 4 5 6 1 chunk +5 lines, -7 lines 0 comments Download
M Source/core/rendering/RenderObject.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderObject.cpp View 1 2 3 4 5 6 2 chunks +14 lines, -13 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Xianzhu
6 years, 5 months ago (2014-07-17 17:09:30 UTC) #1
Xianzhu
Several test (e.g. fast/repaint/vertical-overflow-parent.html) will have extra invalidations for some scrollbar area. They will be ...
6 years, 5 months ago (2014-07-17 18:33:46 UTC) #2
dsinclair
Looking through the results, it looks like svg/repaint/remove-background-property-on-root.html maybe a real failure (no invalidation rects ...
6 years, 5 months ago (2014-07-17 18:36:02 UTC) #3
Xianzhu
On 2014/07/17 18:36:02, dsinclair wrote: > Looking through the results, it looks like > svg/repaint/remove-background-property-on-root.html ...
6 years, 5 months ago (2014-07-17 19:12:54 UTC) #4
Xianzhu
PTAL. https://codereview.chromium.org/398343003/diff/1/Source/core/rendering/RenderBox.cpp File Source/core/rendering/RenderBox.cpp (left): https://codereview.chromium.org/398343003/diff/1/Source/core/rendering/RenderBox.cpp#oldcode1577 Source/core/rendering/RenderBox.cpp:1577: savePreviousBorderBoxSizeIfNeeded(); On 2014/07/17 18:36:01, dsinclair wrote: > Does ...
6 years, 5 months ago (2014-07-17 21:57:35 UTC) #5
dsinclair
https://codereview.chromium.org/398343003/diff/1/Source/core/rendering/RenderObject.h File Source/core/rendering/RenderObject.h (right): https://codereview.chromium.org/398343003/diff/1/Source/core/rendering/RenderObject.h#newcode1037 Source/core/rendering/RenderObject.h:1037: bool shouldCheckForSelfPaintInvalidation() const On 2014/07/17 21:57:34, Xianzhu wrote: > ...
6 years, 5 months ago (2014-07-18 14:15:04 UTC) #6
Xianzhu
https://codereview.chromium.org/398343003/diff/1/Source/core/rendering/RenderObject.h File Source/core/rendering/RenderObject.h (right): https://codereview.chromium.org/398343003/diff/1/Source/core/rendering/RenderObject.h#newcode1037 Source/core/rendering/RenderObject.h:1037: bool shouldCheckForSelfPaintInvalidation() const On 2014/07/18 14:15:04, dsinclair wrote: > ...
6 years, 5 months ago (2014-07-18 17:15:22 UTC) #7
dsinclair
lgtm
6 years, 5 months ago (2014-07-18 17:16:08 UTC) #8
Julien - ping for review
I don't think this change - or anything that makes our invalidation code more complex ...
6 years, 5 months ago (2014-07-18 18:49:44 UTC) #9
Xianzhu
On 2014/07/18 18:49:44, Julien Chaffraix - PST wrote: > I don't think this change - ...
6 years, 5 months ago (2014-07-18 19:05:57 UTC) #10
Xianzhu
Uploaded Patch Set 5 which is based on the following split changes: - https://codereview.chromium.org/403033002/ (submitted) ...
6 years, 5 months ago (2014-07-23 17:47:31 UTC) #11
Xianzhu
6 years, 4 months ago (2014-08-06 19:21:56 UTC) #12

Powered by Google App Engine
This is Rietveld 408576698