DescriptionCleanup the Layer::SetScrollOffset{FromImplSide} property tree fast-path
This patch updates Layer::SetScrollOffset{FromImplSide} to clarify how the
scroll offset fast-path works:
1) Existing property nodes are updated if they exist without invalidating
the property trees.
2) If no existing property nodes exist, the property trees should already be
marked as needig a full rebuild which will update the scroll offset.
DCHECKs have been added to clarify:
* SetScrollOffset should not be called for non-scrollable Layers.
* The scroll transform node does not need to be looked up using layer ids
because it is available via the Layer's transform_node_index().
This patch removes two users of transform node's owning layer id.
BUG=693740
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Review-Url: https://codereview.chromium.org/2877673002
Cr-Commit-Position: refs/heads/master@{#471490}
Committed: https://chromium.googlesource.com/chromium/src/+/64b691c1dfc3e667a1c615e29abf08304c8d5734
Patch Set 1 #Patch Set 2 : Suppress bug in PaintArtifactCompositor #
Total comments: 10
Patch Set 3 : Address reviewer comments with simpler "UpdateScrollOffset" fn #
Messages
Total messages: 24 (13 generated)
|