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

Issue 1376143002: Add a document phase for calculating paint properties (Closed)

Created:
5 years, 2 months ago by pdr.
Modified:
5 years, 2 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-paint_chromium.org, dglazkov+blink, dshwang, eae+blinkwatch, rwlbuis, sof, slimming-paint-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a document phase for calculating paint properties This patch adds the document phase for calculating paint properties but does not actually implement the layout tree walk. For more information about paint properties, see: https://docs.google.com/document/d/12I3JD1-Jmnb59ZHKyntFTSsNUzQhPae8QpCECtZt5zs BUG=537409 Committed: https://crrev.com/dc857b6e854596aec11cf73b63834e06352e6507 Cr-Commit-Position: refs/heads/master@{#351715}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase (remove GLB check, as was done in synchronizedPaint) #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -1 line) Patch
M third_party/WebKit/Source/core/dom/DocumentLifecycle.h View 1 4 chunks +7 lines, -0 lines 2 comments Download
M third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp View 1 1 chunk +14 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 chunks +12 lines, -0 lines 2 comments Download
M third_party/WebKit/Source/core/paint/DisplayItemListPaintTest.h View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 28 (9 generated)
pdr.
5 years, 2 months ago (2015-09-30 18:33:54 UTC) #2
pdr.
5 years, 2 months ago (2015-09-30 19:55:37 UTC) #4
jbroman
lgtm, but I'm not familiar enough with DocumentLifecycle to me a good reviewer for this ...
5 years, 2 months ago (2015-09-30 19:58:15 UTC) #5
pdr.
On 2015/09/30 at 19:58:15, jbroman wrote: > lgtm, but I'm not familiar enough with DocumentLifecycle ...
5 years, 2 months ago (2015-09-30 20:02:58 UTC) #6
chrishtr
https://chromiumcodereview.appspot.com/1376143002/diff/1/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp File third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp (right): https://chromiumcodereview.appspot.com/1376143002/diff/1/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp#newcode202 third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp:202: if (nextState == InPaint && RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled()) Why this part?
5 years, 2 months ago (2015-09-30 21:36:33 UTC) #7
pdr.
https://chromiumcodereview.appspot.com/1376143002/diff/1/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp File third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp (right): https://chromiumcodereview.appspot.com/1376143002/diff/1/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp#newcode202 third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp:202: if (nextState == InPaint && RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled()) On 2015/09/30 at ...
5 years, 2 months ago (2015-09-30 21:53:14 UTC) #8
chrishtr
lgtm
5 years, 2 months ago (2015-09-30 21:54:42 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1376143002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1376143002/1
5 years, 2 months ago (2015-09-30 22:06:45 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/114684)
5 years, 2 months ago (2015-09-30 23:22:54 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1376143002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1376143002/20001
5 years, 2 months ago (2015-10-01 01:43:18 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/89995) win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, ...
5 years, 2 months ago (2015-10-01 01:48:45 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1376143002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1376143002/20001
5 years, 2 months ago (2015-10-01 01:55:18 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 2 months ago (2015-10-01 03:17:20 UTC) #21
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/dc857b6e854596aec11cf73b63834e06352e6507 Cr-Commit-Position: refs/heads/master@{#351715}
5 years, 2 months ago (2015-10-01 03:18:03 UTC) #22
esprehn
https://codereview.chromium.org/1376143002/diff/20001/third_party/WebKit/Source/core/dom/DocumentLifecycle.h File third_party/WebKit/Source/core/dom/DocumentLifecycle.h (right): https://codereview.chromium.org/1376143002/diff/20001/third_party/WebKit/Source/core/dom/DocumentLifecycle.h#newcode72 third_party/WebKit/Source/core/dom/DocumentLifecycle.h:72: CalcPaintPropsClean, We don't generally abbreviate in blink, this should ...
5 years, 2 months ago (2015-10-01 09:00:09 UTC) #24
esprehn
https://codereview.chromium.org/1376143002/diff/20001/third_party/WebKit/Source/core/dom/DocumentLifecycle.h File third_party/WebKit/Source/core/dom/DocumentLifecycle.h (right): https://codereview.chromium.org/1376143002/diff/20001/third_party/WebKit/Source/core/dom/DocumentLifecycle.h#newcode72 third_party/WebKit/Source/core/dom/DocumentLifecycle.h:72: CalcPaintPropsClean, On 2015/10/01 at 09:00:08, esprehn wrote: > We ...
5 years, 2 months ago (2015-10-01 09:05:07 UTC) #25
pdr.
On 2015/10/01 at 09:00:09, esprehn wrote: > https://codereview.chromium.org/1376143002/diff/20001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode2466 > third_party/WebKit/Source/core/frame/FrameView.cpp:2466: // TODO(pdr): Calculate the paint ...
5 years, 2 months ago (2015-10-01 17:55:39 UTC) #26
esprehn
On 2015/10/01 at 17:55:39, pdr wrote: > On 2015/10/01 at 09:00:09, esprehn wrote: > > ...
5 years, 2 months ago (2015-10-01 17:59:44 UTC) #27
pdr.
5 years, 2 months ago (2015-10-01 18:36:22 UTC) #28
Message was sent while issue was closed.
On 2015/10/01 at 17:59:44, esprehn wrote:
> On 2015/10/01 at 17:55:39, pdr wrote:
> > On 2015/10/01 at 09:00:09, esprehn wrote:
> > >
https://codereview.chromium.org/1376143002/diff/20001/third_party/WebKit/Sour...
> > > third_party/WebKit/Source/core/frame/FrameView.cpp:2466: // TODO(pdr):
Calculate the paint properties by walking the layout tree.
> > > That design doc is very light on details, how will you track dirty bits,
what invalidates this phase? What avoids walking the entire layout tree?
> > 
> > For staging, this is literally a entire tree walk while we're implementing
the details. The expectation is that this will be folded into the existing
layout phase. This seems like the least-risky part of the proposal and will let
us shake out the insane complexity of the web painting algorithm without adding
complexity to the existing layout code.
> > 
> 
> Has that been discussed with the layout team? Note that we also skip layout in
lots of cases, for example setting a transform or opacity doesn't do a layout.

Only in passing, but you're right that we should make sure it fits in with their
plans and is technically sound. I'll run this by Levi in more detail tomorrow.
Yeah, we're aware of property changes that don't cause a layout.

Powered by Google App Engine
This is Rietveld 408576698