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

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

Created:
3 years, 10 months ago by bokan
Modified:
3 years, 10 months ago
CC:
blink-reviews, chromium-reviews, kinuko+watch
Target Ref:
refs/pending/heads/master
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} Committed: https://chromium.googlesource.com/chromium/src/+/85fff922d53f16ad66d8d39cb066cbcda1640052

Patch Set 1 #

Patch Set 2 : Remove extra whitespace #

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 1 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: 13 (9 generated)
bokan
Hey Alexandre, This fixes vh units in fullscreen modes where controls are locked hidden. I ...
3 years, 10 months ago (2017-02-24 21:15:29 UTC) #7
aelias_OOO_until_Jul13
lgtm
3 years, 10 months ago (2017-02-24 21:36:15 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2716453004/20001
3 years, 10 months ago (2017-02-24 21:37:22 UTC) #10
commit-bot: I haz the power
3 years, 10 months ago (2017-02-24 23:26:18 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/85fff922d53f16ad66d8d39cb066...

Powered by Google App Engine
This is Rietveld 408576698