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

Issue 382543003: Add a force-layout-height-to-zero layout mode to WebViewImpl (Closed)

Created:
6 years, 5 months ago by mkosiba (inactive)
Modified:
6 years, 4 months ago
CC:
abarth-chromium, blink-reviews, dglazkov+blink, jamesr
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Add a force-layout-height-to-zero layout mode to WebViewImpl This makes it possible for the android_webview to implement 'wrap_content' mode for the view's height without completely ignoring the viewport meta tag (like it's doing now). BUG=392460 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179705

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : make it a setting #

Total comments: 2

Patch Set 4 : rebase #

Patch Set 5 : add one more test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -0 lines) Patch
M Source/core/frame/Settings.in View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M Source/web/WebSettingsImpl.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebSettingsImpl.cpp View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M public/web/WebSettings.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
mkosiba (inactive)
PTAL. more context is in the bug, but I essentially want to deprecate setFixedLayoutSize and ...
6 years, 5 months ago (2014-07-09 16:02:07 UTC) #1
mnaganov (inactive)
https://codereview.chromium.org/382543003/diff/1/Source/web/tests/WebFrameTest.cpp File Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/382543003/diff/1/Source/web/tests/WebFrameTest.cpp#newcode1402 Source/web/tests/WebFrameTest.cpp:1402: EXPECT_EQ(0, webViewHelper.webViewImpl()->mainFrameImpl()->frameView()->layoutSize().height()); Maybe it makes sense to disable the ...
6 years, 5 months ago (2014-07-09 16:13:11 UTC) #2
abarth-chromium
https://codereview.chromium.org/382543003/diff/1/public/web/WebView.h File public/web/WebView.h (right): https://codereview.chromium.org/382543003/diff/1/public/web/WebView.h#newcode293 public/web/WebView.h:293: virtual void setForceZeroLayoutHeight(bool enable) = 0; This should be ...
6 years, 5 months ago (2014-07-09 17:01:08 UTC) #3
mkosiba (inactive)
https://codereview.chromium.org/382543003/diff/1/Source/web/tests/WebFrameTest.cpp File Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/382543003/diff/1/Source/web/tests/WebFrameTest.cpp#newcode1402 Source/web/tests/WebFrameTest.cpp:1402: EXPECT_EQ(0, webViewHelper.webViewImpl()->mainFrameImpl()->frameView()->layoutSize().height()); On 2014/07/09 16:13:11, Mikhail Naganov (Cr) wrote: ...
6 years, 5 months ago (2014-07-09 17:01:27 UTC) #4
mkosiba (inactive)
https://codereview.chromium.org/382543003/diff/1/public/web/WebView.h File public/web/WebView.h (right): https://codereview.chromium.org/382543003/diff/1/public/web/WebView.h#newcode293 public/web/WebView.h:293: virtual void setForceZeroLayoutHeight(bool enable) = 0; On 2014/07/09 17:01:07, ...
6 years, 5 months ago (2014-07-09 17:14:24 UTC) #5
abarth-chromium
Lots of web settings cause invalidations. See, for example, all the "invalidate=Style" settings in Settings.in
6 years, 5 months ago (2014-07-10 03:02:39 UTC) #6
mkosiba (inactive)
On 2014/07/10 03:02:39, abarth wrote: > Lots of web settings cause invalidations. See, for example, ...
6 years, 5 months ago (2014-07-25 08:52:20 UTC) #7
mkosiba (inactive)
ping?
6 years, 4 months ago (2014-07-28 17:13:44 UTC) #8
mkosiba (inactive)
ping
6 years, 4 months ago (2014-07-29 16:32:38 UTC) #9
mnaganov (inactive)
LGTM to get the ball rolling
6 years, 4 months ago (2014-07-29 16:34:14 UTC) #10
abarth-chromium
https://codereview.chromium.org/382543003/diff/40001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/382543003/diff/40001/Source/web/WebViewImpl.cpp#newcode3053 Source/web/WebViewImpl.cpp:3053: layoutSize.height = 0; The settings machinery looks fine, but ...
6 years, 4 months ago (2014-07-29 16:54:55 UTC) #11
mkosiba (inactive)
https://codereview.chromium.org/382543003/diff/40001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/382543003/diff/40001/Source/web/WebViewImpl.cpp#newcode3053 Source/web/WebViewImpl.cpp:3053: layoutSize.height = 0; On 2014/07/29 16:54:55, abarth wrote: > ...
6 years, 4 months ago (2014-07-29 16:57:43 UTC) #12
mkosiba (inactive)
On 2014/07/29 16:57:43, mkosiba wrote: > https://codereview.chromium.org/382543003/diff/40001/Source/web/WebViewImpl.cpp > File Source/web/WebViewImpl.cpp (right): > > https://codereview.chromium.org/382543003/diff/40001/Source/web/WebViewImpl.cpp#newcode3053 > ...
6 years, 4 months ago (2014-07-29 19:42:50 UTC) #13
aelias_OOO_until_Jul13
lgtm. This is just a simpler and less invasive variant of setFixedLayoutSize. We already know ...
6 years, 4 months ago (2014-07-29 21:26:12 UTC) #14
abarth-chromium
lgtm2 then
6 years, 4 months ago (2014-07-29 21:57:15 UTC) #15
mkosiba (inactive)
The CQ bit was checked by mkosiba@chromium.org
6 years, 4 months ago (2014-08-07 12:18:33 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/382543003/80001
6 years, 4 months ago (2014-08-07 12:19:07 UTC) #17
commit-bot: I haz the power
Change committed as 179705
6 years, 4 months ago (2014-08-07 13:43:32 UTC) #18
jbroman
6 years, 4 months ago (2014-08-07 14:19:52 UTC) #19
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/451633004/ by jbroman@chromium.org.

The reason for reverting is: Breaks WebKit Android (Nexus4)
http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Android%20%28Ne...

C   75.423s Main  [FAIL] WebFrameTest.SetForceZeroLayoutHeight:
C   75.423s Main 
../../third_party/WebKit/Source/web/tests/WebFrameTest.cpp:1396: Failure
C   75.423s Main  Value of:
webViewHelper.webViewImpl()->mainFrameImpl()->frameView()->layoutSize().height()
C   75.423s Main    Actual: 735
C   75.423s Main  Expected: viewportHeight
C   75.423s Main  Which is: 480.

Powered by Google App Engine
This is Rietveld 408576698