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

Issue 1573283002: Don't change layout size due to top control show/hide (Closed)

Created:
4 years, 11 months ago by bokan
Modified:
4 years, 11 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-layout_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, jchaffraix+rendering, kenneth.christiansen, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, rwlbuis, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't change layout size due to top control show/hide. This patch changes Chrome's top control (URL bar) behavior on Android to match Safari's in how it affects layout size. To summarize, the layout size or, equivalently, the initial containing block (ICB), is no longer dynamically adjusted when the top controls are shown/hidden. Instead the ICB is statically sized to be the size of the viewport when top controls are showing. position: fixed elements are an exception, they continue to work as they do today, resizing to mach the full viewport size in response to top controls. Additionally, vh units were changed in a similar way; they are now also statically sized but to the size of the viewport with top controls hidden. See https://github.com/bokand/URLBarSizing for full details. Intent to ship: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/BK0oHURgmJ4 BUG=428132 Committed: https://crrev.com/7ea490e3e6a79cc1e7fd4d952bcc36b2ad38cf40 Cr-Commit-Position: refs/heads/master@{#370425}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 7

Patch Set 8 : aelias@ review #

Patch Set 9 : Rebase #

Patch Set 10 : Nit: Remove useless change #

Total comments: 6

Patch Set 11 : Rebase #

Patch Set 12 : jbroman@ review #

Total comments: 2

Patch Set 13 : Remove redundant call to viewportSizeForViewportUnits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+408 lines, -52 lines) Patch
M third_party/WebKit/Source/core/css/CSSToLengthConversionData.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +1 line, -6 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +25 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/PageScaleConstraintsSet.h View 2 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/PageScaleConstraintsSet.cpp View 5 chunks +10 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutView.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutView.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 9 10 4 chunks +15 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/TopControlsTest.cpp View 1 2 3 4 5 6 7 5 chunks +185 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/percent-height.html View 1 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/vh-height.html View 1 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/vh-height-width-800.html View 1 2 3 4 5 6 7 1 chunk +42 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/vh-height-width-800-extra-wide.html View 1 2 3 4 5 6 7 1 chunk +42 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (22 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1573283002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1573283002/1
4 years, 11 months ago (2016-01-11 20:42:23 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/6744) linux_chromium_rel_ng on ...
4 years, 11 months ago (2016-01-11 21:49:37 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1573283002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1573283002/80001
4 years, 11 months ago (2016-01-15 16:58:35 UTC) #7
bokan
Alexandre, PTAL. I'll send out an intent-to-ship to #blink-dev when/if you're happy with this.
4 years, 11 months ago (2016-01-15 16:59:29 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/80300)
4 years, 11 months ago (2016-01-15 17:15:23 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1573283002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1573283002/100001
4 years, 11 months ago (2016-01-15 17:29:22 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_android on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/8864)
4 years, 11 months ago (2016-01-15 17:41:09 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1573283002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1573283002/120001
4 years, 11 months ago (2016-01-15 18:24:21 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/9406)
4 years, 11 months ago (2016-01-15 21:42:40 UTC) #19
aelias_OOO_until_Jul13
Sounds good to send the intent-to-ship. https://codereview.chromium.org/1573283002/diff/120001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/1573283002/diff/120001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode1130 third_party/WebKit/Source/core/frame/FrameView.cpp:1130: float pageScale = ...
4 years, 11 months ago (2016-01-16 04:17:38 UTC) #20
bokan
https://codereview.chromium.org/1573283002/diff/120001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/1573283002/diff/120001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode1130 third_party/WebKit/Source/core/frame/FrameView.cpp:1130: float pageScale = m_frame->host()->pageScaleConstraintsSet().finalConstraints().minimumScale; On 2016/01/16 04:17:38, aelias wrote: ...
4 years, 11 months ago (2016-01-19 00:05:31 UTC) #21
aelias_OOO_until_Jul13
lgtm https://codereview.chromium.org/1573283002/diff/120001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/1573283002/diff/120001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode1130 third_party/WebKit/Source/core/frame/FrameView.cpp:1130: float pageScale = m_frame->host()->pageScaleConstraintsSet().finalConstraints().minimumScale; On 2016/01/19 at 00:05:31, ...
4 years, 11 months ago (2016-01-19 20:26:32 UTC) #22
bokan
+jbroman@ for Source/core/layout and Source/core/css
4 years, 11 months ago (2016-01-20 15:26:19 UTC) #25
jbroman
lgtm with a few suggestions I'm probably not the best reviewer for core/css/ and core/layout/ ...
4 years, 11 months ago (2016-01-20 15:44:28 UTC) #29
bokan
https://codereview.chromium.org/1573283002/diff/180001/third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp File third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp (right): https://codereview.chromium.org/1573283002/diff/180001/third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp#newcode71 third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp:71: : m_width(layoutView ? layoutView->viewportSizeForViewportUnits().width() : 0) On 2016/01/20 15:44:28, ...
4 years, 11 months ago (2016-01-20 16:41:10 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1573283002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1573283002/220001
4 years, 11 months ago (2016-01-20 16:44:31 UTC) #33
jbroman
https://codereview.chromium.org/1573283002/diff/220001/third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp File third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp (right): https://codereview.chromium.org/1573283002/diff/220001/third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp#newcode71 third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp:71: : m_size( DoubleSize can be constructed from the FloatSize, ...
4 years, 11 months ago (2016-01-20 16:50:25 UTC) #34
bokan
https://codereview.chromium.org/1573283002/diff/220001/third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp File third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp (right): https://codereview.chromium.org/1573283002/diff/220001/third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp#newcode71 third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp:71: : m_size( On 2016/01/20 16:50:25, jbroman wrote: > DoubleSize ...
4 years, 11 months ago (2016-01-20 16:51:21 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1573283002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1573283002/240001
4 years, 11 months ago (2016-01-20 16:53:54 UTC) #39
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 11 months ago (2016-01-20 17:56:48 UTC) #41
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/7ea490e3e6a79cc1e7fd4d952bcc36b2ad38cf40 Cr-Commit-Position: refs/heads/master@{#370425}
4 years, 11 months ago (2016-01-20 17:57:47 UTC) #43
sgurun-gerrit only
4 years, 11 months ago (2016-01-20 20:59:05 UTC) #44
Message was sent while issue was closed.
A revert of this CL (patchset #13 id:240001) has been created in
https://codereview.chromium.org/1611693002/ by sgurun@chromium.org.

The reason for reverting is: speculative reverts for
https://build.chromium.org/p/chromium.linux/builders/Linux%20Tests%20%28dbg%2...

see crbug/579666


.

Powered by Google App Engine
This is Rietveld 408576698