Fix 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}
Showing
Please register or sign in to comment