Chromium Code Reviews
DescriptionRevert of Changing URL bar constraints only calls performResize on Hidden <-> Both (patchset #1 id:1 of https://codereview.chromium.org/2656633003/ )
Reason for revert:
Didn't help on the perf bots. Temporarily reverting along with orignial patch to investigate.
Original issue's description:
> Changing URL bar constraints only calls performResize on Hidden <-> Both
>
> With the change to the URL bar not causing a vertical resize on showing/hiding,
> we keep the layout height sized "as if" the URL bar was always shown. However,
> for fullscreen scenarios, since the URL bar is locked to a hidden state there's
> no need to keep it static to the smaller size so we use the full viewport
> height instead.
>
> This means that when we change the URL bar constraints we may need to change
> the layout height. In most cases, we can rely on a Resize event being sent to
> the renderer kicking off the layout size change. The one exception here is from
> a "Locked Hidden" to "Unlocked" state, or vice-versa. That's because the URL
> bar's state might not change (it can remain hidden) but the layout size should
> change.
>
> Note that going from "Locked Hidden" -> "Shown" doesn't have this problem as
> the URL bar state will change necessarily. Going from "Unlocked" -> "Shown" may
> or may not change the URL bar state, but it will not change the layout height
> since we use the "Shown" height for layout height when the URL bar is
> "Unlocked".
>
> Before this patch, we were overly-aggressive in triggering performResize which
> caused us to perform extra work as the page went from "Locked Shown" to
> "Unlocked", as happens when the page is navigated. This caused a minor memory
> regression. This patch performs the resize only when needed, on going from
> "Locked Hidden" to "Unlocked" or vice-versa.
>
> BUG=679546
>
> Review-Url: https://codereview.chromium.org/2656633003
> Cr-Commit-Position: refs/heads/master@{#445855}
> Committed: https://chromium.googlesource.com/chromium/src/+/38992dee686ca58d5f1a61d44ef3e534b8c2967c
TBR=aelias@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=679546
Review-Url: https://codereview.chromium.org/2659483003
Cr-Commit-Position: refs/heads/master@{#446362}
Committed: https://chromium.googlesource.com/chromium/src/+/13876a1d16f4e9a09ffacebcd3b9df0a21a2e55b
Patch Set 1 #
Messages
Total messages: 7 (3 generated)
|
|||||||||||||||||||