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

Issue 2795263002: Add a new document lifecycle; CompositingInputsClean (Closed)

Created:
3 years, 8 months ago by smcgruer
Modified:
3 years, 8 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-frames_chromium.org, blink-reviews-layout_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, rwlbuis, sof, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a new document lifecycle; CompositingInputsClean The goal here is to be able to clean the compositing inputs without running full compositing or starting animations. This is necessary for properly computing compositing inputs-related properties such as sticky (see the bug for details on that). BUG=672457 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2795263002 Cr-Commit-Position: refs/heads/master@{#465248} Committed: https://chromium.googlesource.com/chromium/src/+/79d50ca3b3326c45c7d041bc9cd8f5abd64b24cb

Patch Set 1 #

Patch Set 2 : Updates, add tests #

Patch Set 3 : Convert if-check to DCHECK #

Patch Set 4 : Rebase past blink reformat #

Total comments: 7

Patch Set 5 : Address reviewer comments #

Total comments: 2

Patch Set 6 : Address reviewer comments #

Patch Set 7 : Rebase #

Patch Set 8 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -21 lines) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentLifecycle.h View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp View 1 2 3 4 5 6 3 chunks +21 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 7 4 chunks +16 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.h View 1 2 3 4 5 6 5 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp View 1 2 3 4 5 6 6 chunks +48 lines, -10 lines 0 comments Download
A third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositorTest.cpp View 1 2 3 4 1 chunk +85 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (20 generated)
smcgruer
FYI: my first approach at this. Some refactoring of updateIfNeeded could be done to make ...
3 years, 8 months ago (2017-04-04 17:27:16 UTC) #5
smcgruer
This is now at the point where it still needs refactoring and clean-up, but I ...
3 years, 8 months ago (2017-04-07 14:27:02 UTC) #8
flackr
https://codereview.chromium.org/2795263002/diff/60001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2795263002/diff/60001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode2924 third_party/WebKit/Source/core/frame/FrameView.cpp:2924: // TODO(smcgruer): DCHECK !RuntimeEnabledFeatures::slimmingPaintV2Enabled() ? This is never called ...
3 years, 8 months ago (2017-04-11 20:46:28 UTC) #9
smcgruer
https://codereview.chromium.org/2795263002/diff/60001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2795263002/diff/60001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode2924 third_party/WebKit/Source/core/frame/FrameView.cpp:2924: // TODO(smcgruer): DCHECK !RuntimeEnabledFeatures::slimmingPaintV2Enabled() ? On 2017/04/11 20:46:28, flackr ...
3 years, 8 months ago (2017-04-12 15:33:05 UTC) #10
flackr
LGTM but let's have someone more familiar with the lifecycle take a look. https://codereview.chromium.org/2795263002/diff/60001/third_party/WebKit/Source/core/frame/FrameView.cpp File ...
3 years, 8 months ago (2017-04-12 15:50:15 UTC) #11
smcgruer
https://codereview.chromium.org/2795263002/diff/80001/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp File third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp (right): https://codereview.chromium.org/2795263002/diff/80001/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp#newcode455 third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp:455: if (target_state == DocumentLifecycle::kCompositingInputsClean) { On 2017/04/12 15:50:15, flackr ...
3 years, 8 months ago (2017-04-12 17:18:44 UTC) #12
smcgruer
+chrishtr for thoughts on the added lifecycle, +suzyh to make sure everything is ok regarding ...
3 years, 8 months ago (2017-04-12 17:23:51 UTC) #14
smcgruer
3 years, 8 months ago (2017-04-12 17:24:18 UTC) #16
chrishtr
lgtm
3 years, 8 months ago (2017-04-13 20:48:16 UTC) #25
suzyh_UTC10 (ex-contributor)
On 2017/04/12 at 17:23:51, smcgruer wrote: > +chrishtr for thoughts on the added lifecycle, +suzyh ...
3 years, 8 months ago (2017-04-18 06:09:25 UTC) #26
smcgruer
Sorry Suzy, I should have provided more context for you. There is not a design ...
3 years, 8 months ago (2017-04-18 13:21:19 UTC) #27
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/2795263002/140001
3 years, 8 months ago (2017-04-18 13:30:02 UTC) #30
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/79d50ca3b3326c45c7d041bc9cd8f5abd64b24cb
3 years, 8 months ago (2017-04-18 15:47:55 UTC) #33
suzyh_UTC10 (ex-contributor)
3 years, 8 months ago (2017-04-18 23:34:22 UTC) #34
Message was sent while issue was closed.
On 2017/04/18 at 13:21:19, smcgruer wrote:
> Sorry Suzy, I should have provided more context for you.  There is not a
design document, but my intention in adding you as a reviewer was an
FYI/sanity-check as the previous attempt to fix crbug.com/672457 resulted in me
breaking the animation lifecycle accidentally.
> 
> The next CL for this issue will be the one that actually has behavioral
changes (this CL just adds a new lifecycle step, no non-test code actually
targets it yet), so what I will do is:
> 
> 1. Submit this.
> 2. Put together a background document explaining the context for the next CL.
> 3. Add you as a reviewer on that CL so you can help confirm I am not
accidentally breaking the animation lifecycle again :).

SGTM, thanks.

Powered by Google App Engine
This is Rietveld 408576698