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

Issue 2359063002: Add static root property tree nodes [spv2] (Closed)

Created:
4 years, 3 months ago by pdr.
Modified:
4 years, 3 months ago
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-paint_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney, slimming-paint-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add static root property tree nodes [spv2] Slimming paint v2 (SPV2) initially had root property tree nodes on the FrameView. This approach required some contortions when the root-layer- scrolls codepath was added because LayoutView needed to store the root nodes. This patch adds static root paint property tree nodes but only uses them on FrameView. A followup patch will switch the root-layer-scrolls codepath to use this approach as well. Because the root nodes can no longer be looked up off the FrameView, a cache of the entire property tree state has been added to FrameView (totalPropertyTreeStateForContents). This is similar to LocalBorderBoxProperties on ObjectPaintProperties, and a followup patch will refactor LocalBorderBoxProperties to use PropertyTreeState as well. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 BUG=645615 Committed: https://crrev.com/a518f5340802393f8bdaa6b3d376dc5482049351 Cr-Commit-Position: refs/heads/master@{#420577}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address reviewer comments and fix a test #

Total comments: 1

Patch Set 3 : Restore PaintPropertyTreeGraphBuilder root node printing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -122 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.h View 1 4 chunks +10 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/core/paint/FramePainter.cpp View 1 chunk +6 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ObjectPaintProperties.h View 2 chunks +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintControllerPaintTest.cpp View 1 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp View 2 chunks +42 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp View 9 chunks +11 lines, -36 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreePrinter.cpp View 1 2 8 chunks +42 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/ScrollPaintPropertyNode.h View 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 23 (12 generated)
pdr.
4 years, 3 months ago (2016-09-22 06:42:34 UTC) #4
trchen
lgtm. I was thinking of having a static "invalid" node instead of static root node ...
4 years, 3 months ago (2016-09-22 08:03:20 UTC) #7
jbroman
overall this approach looks good to me https://codereview.chromium.org/2359063002/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp File third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp (right): https://codereview.chromium.org/2359063002/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp#newcode63 third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp:63: rootScrollNode()->clearMainThreadScrollingReasons(); This ...
4 years, 3 months ago (2016-09-22 14:20:52 UTC) #8
chrishtr
https://codereview.chromium.org/2359063002/diff/1/third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.h File third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.h (right): https://codereview.chromium.org/2359063002/diff/1/third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.h#newcode45 third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.h:45: bool isRoot() const { return !m_parent; } You never ...
4 years, 3 months ago (2016-09-22 16:36:58 UTC) #9
pdr.
https://codereview.chromium.org/2359063002/diff/1/third_party/WebKit/Source/core/paint/FramePainter.cpp File third_party/WebKit/Source/core/paint/FramePainter.cpp (right): https://codereview.chromium.org/2359063002/diff/1/third_party/WebKit/Source/core/paint/FramePainter.cpp#newcode49 third_party/WebKit/Source/core/paint/FramePainter.cpp:49: if (const PropertyTreeState* contentsState = m_frameView->totalPropertyTreeStateForContents()) { This change ...
4 years, 3 months ago (2016-09-22 19:48:21 UTC) #10
chrishtr
lgtm
4 years, 3 months ago (2016-09-22 21:14:51 UTC) #13
szager1
lgtm with nit. https://codereview.chromium.org/2359063002/diff/20001/third_party/WebKit/Source/core/paint/PaintPropertyTreePrinter.cpp File third_party/WebKit/Source/core/paint/PaintPropertyTreePrinter.cpp (right): https://codereview.chromium.org/2359063002/diff/20001/third_party/WebKit/Source/core/paint/PaintPropertyTreePrinter.cpp#newcode244 third_party/WebKit/Source/core/paint/PaintPropertyTreePrinter.cpp:244: You need something here to output ...
4 years, 3 months ago (2016-09-23 00:35:48 UTC) #16
pdr.
On 2016/09/23 at 00:35:48, szager wrote: > lgtm with nit. > > https://codereview.chromium.org/2359063002/diff/20001/third_party/WebKit/Source/core/paint/PaintPropertyTreePrinter.cpp > File ...
4 years, 3 months ago (2016-09-23 03:23:06 UTC) #17
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/2359063002/40001
4 years, 3 months ago (2016-09-23 03:23:34 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-23 04:46:16 UTC) #21
commit-bot: I haz the power
4 years, 3 months ago (2016-09-23 04:48:28 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a518f5340802393f8bdaa6b3d376dc5482049351
Cr-Commit-Position: refs/heads/master@{#420577}

Powered by Google App Engine
This is Rietveld 408576698