Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(479)

Issue 2720743002: vh units shouldn't add controls height when controls are locked to hidden. (Closed)

Created:
3 years, 9 months ago by bokan
Modified:
3 years, 9 months ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2987
Project:
chromium
Visibility:
Public.

Description

vh units shouldn't add controls height when controls are locked to hidden. Since the initial containing block is now fixed to be the size as if the browser controls are always shown -- and we want 100vh to appear as if the viewport is always hidden -- we add the browser controls height to the layout height used for viewport units. One exception to this when the browser controls are locked in a hidden state. In that case, the ICB is actually set to fill the full viewport. In that case adding the controls height actually makes 100vh taller than the viewport. This patch avoids adding the controls height when controls are locked hidden. BUG=688738 Review-Url: https://codereview.chromium.org/2716453004 Cr-Commit-Position: refs/heads/master@{#452991} (cherry picked from commit 85fff922d53f16ad66d8d39cb066cbcda1640052) Review-Url: https://codereview.chromium.org/2720743002 . Cr-Commit-Position: refs/branch-heads/2987@{#694} Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943} Committed: https://chromium.googlesource.com/chromium/src/+/e2457ff0890ac0eaf34c7ea0312f3e9d30f866a6

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -5 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.cpp View 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/tests/BrowserControlsTest.cpp View 1 chunk +58 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
bokan
3 years, 9 months ago (2017-02-27 14:09:07 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
e2457ff0890ac0eaf34c7ea0312f3e9d30f866a6.

Powered by Google App Engine
This is Rietveld 408576698