DescriptionFix incorrect padding size with NTP.
ContentLayer::ComputeSize() could return the wrong value when
can_use_live_layer is false because the live layer would be hidden by
detaching it from the parent layer. That's not observable by
the early-returns in GetDrawsContentLeaf, so a full live layer size
could be returned, resulting in insufficient padding. Switching to
HideLayerAndSubtree instead makes it observed by one early-return.
BUG=696977, 699478
Review-Url: https://codereview.chromium.org/2739103004
Cr-Commit-Position: refs/heads/master@{#455999}
Committed: https://chromium.googlesource.com/chromium/src/+/665e60f501059b311b9d4e2ae97f5fc90025289e
Patch Set 1 #
Messages
Total messages: 9 (5 generated)
|