Add paint offset and element id to ScrollPaintPropertyNode

Desktop / Chromium - Philip Rogers [chromium.org] - 8 August 2017 00:09 EDT

This patch adds paint offset and a compositor element id to ScrollPaintPropertyNode. Paint offset will be used in a future patch for offsetting the scroll hit test layer associated with the scroll node. The compositor element id for scrolling is now stored explicitly on the scroll node which removes an ambiguity when using the transform paint property element id.

This patch is part of a series of patches to add scrollable hit test layers in SPV2. A proof-of-concept patch is at: https://chromium-review.googlesource.com/c/554060.

Bug: 738613 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: I913bb237361963312aa42d07584051fd5889233d Reviewed-on: https://chromium-review.googlesource.com/602927

4e8e4b1 Add paint offset and element id to ScrollPaintPropertyNode
.../Source/core/paint/PaintPropertyTreeBuilder.cpp | 52 +++++++++---------
.../core/paint/PaintPropertyTreeBuilderTest.cpp | 63 +++++++++++++++++++++-
.../compositing/PaintArtifactCompositorTest.cpp | 25 ++++-----
.../graphics/compositing/PropertyTreeManager.cpp | 11 ++--
.../platform/graphics/paint/PropertyTreeState.cpp | 7 +++
.../graphics/paint/ScrollPaintPropertyNode.cpp | 12 +++--
.../graphics/paint/ScrollPaintPropertyNode.h | 43 ++++++++++++---
.../graphics/paint/TransformPaintPropertyNode.h | 26 +++++----
8 files changed, 174 insertions(+), 65 deletions(-)

Upstream: git.chromium.org


  • Share