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

Issue 182383019: Should not repaint if a CSS property change can be composited (Closed)

Created:
6 years, 9 months ago by trchen
Modified:
6 years, 9 months ago
Reviewers:
esprehn, enne (OOO)
CC:
blink-reviews, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, blink-layers+watch_chromium.org, jchaffraix+rendering, pdr.
Visibility:
Public.

Description

Should not repaint if a CSS property change can be composited This patch fixes a case that when a RenderObject has StyleDiffLayout, its composited descendants shouldn't repaint if the style changes can be composited (and don't change the layout of them). The optimized CSS properties are clip, position, z-index, opacity, transform, and filter. BUG=338926 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168760

Patch Set 1 #

Total comments: 6

Patch Set 2 : add clipping test. fix style. #

Total comments: 1

Patch Set 3 : as your wish! (remove table) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+402 lines, -10 lines) Patch
A LayoutTests/compositing/repaint/clipping-should-not-repaint-composited-descendants.html View 1 1 chunk +78 lines, -0 lines 0 comments Download
A LayoutTests/compositing/repaint/clipping-should-not-repaint-composited-descendants-expected.txt View 1 1 chunk +49 lines, -0 lines 0 comments Download
A LayoutTests/compositing/repaint/should-not-repaint-composited-styles.html View 1 2 1 chunk +93 lines, -0 lines 0 comments Download
A LayoutTests/compositing/repaint/should-not-repaint-composited-styles-expected.txt View 1 2 1 chunk +169 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderLayerModelObject.cpp View 1 1 chunk +13 lines, -10 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
trchen
Hello esprehn@, this patch reduces unnecessary repaints for CSS property changes that can be composited. ...
6 years, 9 months ago (2014-03-04 23:46:26 UTC) #1
esprehn
This needs a better description, you only change the behavior for CSS clip, so the ...
6 years, 9 months ago (2014-03-05 00:09:49 UTC) #2
trchen
On 2014/03/05 00:09:49, esprehn wrote: > This needs a better description, you only change the ...
6 years, 9 months ago (2014-03-05 00:21:15 UTC) #3
enne (OOO)
https://codereview.chromium.org/182383019/diff/1/LayoutTests/compositing/repaint/should-not-repaint-composited-styles.html File LayoutTests/compositing/repaint/should-not-repaint-composited-styles.html (right): https://codereview.chromium.org/182383019/diff/1/LayoutTests/compositing/repaint/should-not-repaint-composited-styles.html#newcode60 LayoutTests/compositing/repaint/should-not-repaint-composited-styles.html:60: testRunner.display(); On 2014/03/05 00:09:49, esprehn wrote: > display() is ...
6 years, 9 months ago (2014-03-05 00:24:19 UTC) #4
trchen
New CL uploaded. On 2014/03/05 00:24:19, enne wrote: > https://codereview.chromium.org/182383019/diff/1/LayoutTests/compositing/repaint/should-not-repaint-composited-styles.html > File LayoutTests/compositing/repaint/should-not-repaint-composited-styles.html > (right): ...
6 years, 9 months ago (2014-03-05 04:50:08 UTC) #5
trchen
Hi esprehn@, This is a friendly reminder to please submit your feedback on this new ...
6 years, 9 months ago (2014-03-06 23:04:23 UTC) #6
esprehn
lgtm, one comment. https://codereview.chromium.org/182383019/diff/20001/LayoutTests/compositing/repaint/should-not-repaint-composited-styles.html File LayoutTests/compositing/repaint/should-not-repaint-composited-styles.html (right): https://codereview.chromium.org/182383019/diff/20001/LayoutTests/compositing/repaint/should-not-repaint-composited-styles.html#newcode75 LayoutTests/compositing/repaint/should-not-repaint-composited-styles.html:75: <td></td><td>composited child</td><td>non-composited child</td> It would be ...
6 years, 9 months ago (2014-03-06 23:26:01 UTC) #7
trchen
The CQ bit was checked by trchen@chromium.org
6 years, 9 months ago (2014-03-07 00:47:26 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/trchen@chromium.org/182383019/60001
6 years, 9 months ago (2014-03-07 00:47:47 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 00:55:08 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_compile
6 years, 9 months ago (2014-03-07 00:55:09 UTC) #11
trchen
The CQ bit was checked by trchen@chromium.org
6 years, 9 months ago (2014-03-07 01:33:12 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/trchen@chromium.org/182383019/60001
6 years, 9 months ago (2014-03-07 01:33:26 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 03:31:44 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink
6 years, 9 months ago (2014-03-07 03:31:44 UTC) #15
trchen
The CQ bit was checked by trchen@chromium.org
6 years, 9 months ago (2014-03-07 05:00:45 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/trchen@chromium.org/182383019/60001
6 years, 9 months ago (2014-03-07 05:00:52 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 06:26:43 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink
6 years, 9 months ago (2014-03-07 06:26:44 UTC) #19
trchen
The CQ bit was checked by trchen@chromium.org
6 years, 9 months ago (2014-03-07 23:32:38 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/trchen@chromium.org/182383019/60001
6 years, 9 months ago (2014-03-07 23:32:49 UTC) #21
commit-bot: I haz the power
6 years, 9 months ago (2014-03-08 03:45:06 UTC) #22
Message was sent while issue was closed.
Change committed as 168760

Powered by Google App Engine
This is Rietveld 408576698