DescriptionDon't set sent_top_controls_delta when root layer doesn't exist.
Soon after CC initialization when the layer tree doesn't exist yet, the
top controls delta can still be set. In that case, an early return in
LTH::ApplyScrollAndScale doesn't forward the value to Blink -- the
"sent_" value is misleading here, and this causes the delta to get
clobbered on the next commit. Avoid this scenario by matching the
LTH-side early-return in LTHI.
NOTRY=true
BUG=423139
Committed: https://crrev.com/5d3e3b4f0fbd7a9ec4a6f41d8680e548f253797c
Cr-Commit-Position: refs/heads/master@{#299426}
Patch Set 1 #Patch Set 2 : Remove unused variable in unit test #
Messages
Total messages: 11 (4 generated)
|