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

Issue 232013002: Rewind the DocumentLifecycle when dirtying state (Closed)

Created:
6 years, 8 months ago by abarth-chromium
Modified:
6 years, 8 months ago
Reviewers:
eseidel, esprehn, ojan
CC:
blink-reviews, zoltan1, dsinclair, sof, eae+blinkwatch, leviw+renderwatch, dglazkov+blink, adamk+blink_chromium.org, jchaffraix+rendering, Inactive, bemjb+rendering_chromium.org, pdr., rune+blink, rwlbuis, esprehn, Ian Vollick
Visibility:
Public.

Description

Rewind the DocumentLifecycle when dirtying state Before this CL, we didn't actually rewind the DocumentLifecycle when we scheduled layout or compositing updates. This CL adds the rewind and finds some cases where we're doing something sketchy (e.g., scheduling a layout after detaching a document from its frame). Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171221

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address esprehn's comments #

Total comments: 1

Patch Set 3 : Address Ojan's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -22 lines) Patch
M Source/core/dom/Document.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Document.cpp View 1 2 2 chunks +10 lines, -3 lines 0 comments Download
M Source/core/dom/DocumentLifecycle.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M Source/core/dom/DocumentLifecycle.cpp View 1 2 6 chunks +17 lines, -9 lines 0 comments Download
M Source/core/frame/DeprecatedScheduleStyleRecalcDuringCompositingUpdate.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/frame/DeprecatedScheduleStyleRecalcDuringLayout.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/frame/FrameView.cpp View 3 chunks +8 lines, -0 lines 0 comments Download
M Source/core/frame/LocalFrame.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/rendering/compositing/RenderLayerCompositor.cpp View 1 2 4 chunks +37 lines, -1 line 0 comments Download
M Source/core/testing/Internals.cpp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
abarth-chromium
6 years, 8 months ago (2014-04-09 21:26:13 UTC) #1
abarth-chromium
https://codereview.chromium.org/232013002/diff/1/Source/core/frame/LocalFrame.cpp File Source/core/frame/LocalFrame.cpp (left): https://codereview.chromium.org/232013002/diff/1/Source/core/frame/LocalFrame.cpp#oldcode399 Source/core/frame/LocalFrame.cpp:399: ASSERT(document()->lifecycle().state() >= DocumentLifecycle::CompositingClean); RenderLayerCompositor's layerTreeAsText has this ASSERT already.
6 years, 8 months ago (2014-04-09 21:27:36 UTC) #2
eseidel
lgtm
6 years, 8 months ago (2014-04-09 21:31:46 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/232013002/1
6 years, 8 months ago (2014-04-09 21:31:51 UTC) #4
eseidel
Good to relate a meta bug if you hav eone.
6 years, 8 months ago (2014-04-09 21:31:59 UTC) #5
esprehn
lgtm. Ideally we'd stop calling scheduleVisualUpdate() except by doing lifecycle().scheduleVisualUpdate() which would change the state ...
6 years, 8 months ago (2014-04-09 21:32:24 UTC) #6
abarth-chromium
The CQ bit was unchecked by abarth@chromium.org
6 years, 8 months ago (2014-04-09 21:34:38 UTC) #7
abarth-chromium
https://codereview.chromium.org/232013002/diff/1/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/232013002/diff/1/Source/core/dom/Document.cpp#newcode2636 Source/core/dom/Document.cpp:2636: || (documentElement() && !isHTMLHtmlElement(*documentElement())); On 2014/04/09 21:32:25, esprehn wrote: ...
6 years, 8 months ago (2014-04-09 21:41:26 UTC) #8
abarth-chromium
The CQ bit was checked by abarth@chromium.org
6 years, 8 months ago (2014-04-09 21:57:27 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/232013002/20001
6 years, 8 months ago (2014-04-09 21:57:32 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-09 22:34:32 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_rel
6 years, 8 months ago (2014-04-09 22:34:32 UTC) #12
abarth-chromium
The CQ bit was checked by abarth@chromium.org
6 years, 8 months ago (2014-04-09 22:38:16 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/232013002/20001
6 years, 8 months ago (2014-04-09 22:38:17 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-09 22:41:32 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_rel
6 years, 8 months ago (2014-04-09 22:41:33 UTC) #16
ojan
lgtm https://codereview.chromium.org/232013002/diff/20001/Source/core/dom/DocumentLifecycle.h File Source/core/dom/DocumentLifecycle.h (right): https://codereview.chromium.org/232013002/diff/20001/Source/core/dom/DocumentLifecycle.h#newcode47 Source/core/dom/DocumentLifecycle.h:47: UpdatePending, This name is a bit too general, ...
6 years, 8 months ago (2014-04-09 22:43:26 UTC) #17
abarth-chromium
On 2014/04/09 22:43:26, ojan wrote: > https://codereview.chromium.org/232013002/diff/20001/Source/core/dom/DocumentLifecycle.h > File Source/core/dom/DocumentLifecycle.h (right): > > https://codereview.chromium.org/232013002/diff/20001/Source/core/dom/DocumentLifecycle.h#newcode47 > ...
6 years, 8 months ago (2014-04-09 22:48:42 UTC) #18
ojan
On 2014/04/09 22:48:42, abarth wrote: > On 2014/04/09 22:43:26, ojan wrote: > > > https://codereview.chromium.org/232013002/diff/20001/Source/core/dom/DocumentLifecycle.h ...
6 years, 8 months ago (2014-04-09 22:50:48 UTC) #19
abarth-chromium
The CQ bit was checked by abarth@chromium.org
6 years, 8 months ago (2014-04-10 00:22:49 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/232013002/40001
6 years, 8 months ago (2014-04-10 00:22:57 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-10 01:29:21 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 8 months ago (2014-04-10 01:29:22 UTC) #23
esprehn
The CQ bit was checked by esprehn@chromium.org
6 years, 8 months ago (2014-04-10 01:35:01 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/232013002/40001
6 years, 8 months ago (2014-04-10 01:35:07 UTC) #25
commit-bot: I haz the power
6 years, 8 months ago (2014-04-10 02:43:31 UTC) #26
Message was sent while issue was closed.
Change committed as 171221

Powered by Google App Engine
This is Rietveld 408576698