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

Issue 23441020: Make it possibe to lock the fixedLayoutSize (Closed)

Created:
7 years, 3 months ago by mkosiba (inactive)
Modified:
7 years, 3 months ago
CC:
blink-reviews, kenneth.christiansen, dglazkov+blink, eae+blinkwatch, jamesr, abarth-chromium, bokan
Visibility:
Public.

Description

This makes it possible to specify and lock the fixedLayoutSize. The reason for this change is android_webview/ wrap_content mode where the size of the WebView depends on the size of its contents. Without forcing the layout size to a fixed value, such a configuration becomes unstable when elements whose size is relative to the viewport size are present in the contents. This also adds support for zero-height, non-zero width layout sizes. BUG=246621 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157749

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 7

Patch Set 3 : #

Patch Set 4 : add one more test #

Total comments: 6

Patch Set 5 : use setFixedLayoutSize instead of adding new API #

Patch Set 6 : #

Total comments: 5

Patch Set 7 : #

Total comments: 3

Patch Set 8 : dont need to disable content rects scaling? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -10 lines) Patch
M Source/core/platform/ScrollView.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebViewImpl.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 5 chunks +16 lines, -5 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 1 chunk +123 lines, -0 lines 0 comments Download
A + Source/web/tests/data/200-by-300.html View 1 2 3 1 chunk +7 lines, -4 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
mkosiba (inactive)
These are pretty raw, but I'd appreciate a first pass of feedback. The patch that ...
7 years, 3 months ago (2013-08-30 18:25:08 UTC) #1
mkosiba (inactive)
I was also playing around with making the autosizing work in a slightly different way: ...
7 years, 3 months ago (2013-08-30 20:47:47 UTC) #2
aelias_OOO_until_Jul13
Hmm. I'm having trouble understanding what are the relevant differences between the WebView case and ...
7 years, 3 months ago (2013-08-31 03:45:04 UTC) #3
aelias_OOO_until_Jul13
I may really need a summary of the principles behind WRAP_CONTENT behavior as I don't ...
7 years, 3 months ago (2013-08-31 03:50:10 UTC) #4
mkosiba (inactive)
It may help to read up on Android layout a bit (http://developer.android.com/reference/android/view/View.html, scroll down to ...
7 years, 3 months ago (2013-09-02 11:28:58 UTC) #5
mkosiba (inactive)
+ Shawn for fixed position know-how Hmm... after writing the above and a bit more ...
7 years, 3 months ago (2013-09-02 16:17:14 UTC) #6
aelias_OOO_until_Jul13
Post-https://codereview.chromium.org/23171014/ (which is already cherry-picked into klp-dev), physical_backing_size is *only* used for fixed-pos and for ...
7 years, 3 months ago (2013-09-03 01:59:04 UTC) #7
mkosiba (inactive)
On 2013/09/03 01:59:04, aelias wrote: > Post-https://codereview.chromium.org/23171014/ (which is already cherry-picked > into klp-dev), physical_backing_size ...
7 years, 3 months ago (2013-09-03 19:01:24 UTC) #8
aelias_OOO_until_Jul13
> What impact would a non-zero FixedContainerSizeDelta have? It applies a translation on the fixed-pos ...
7 years, 3 months ago (2013-09-04 03:25:51 UTC) #9
mkosiba (inactive)
On 2013/09/04 03:25:51, aelias wrote: > > What impact would a non-zero FixedContainerSizeDelta have? > ...
7 years, 3 months ago (2013-09-05 18:16:22 UTC) #10
mkosiba (inactive)
On 2013/09/05 18:16:22, mkosiba wrote: > On 2013/09/04 03:25:51, aelias wrote: > > > What ...
7 years, 3 months ago (2013-09-05 18:17:38 UTC) #11
aelias_OOO_until_Jul13
This doesn't look bad now! I wouldn't mind something like this landing. Please add a ...
7 years, 3 months ago (2013-09-06 01:50:06 UTC) #12
aelias_OOO_until_Jul13
[+bokan as FYI]
7 years, 3 months ago (2013-09-06 02:02:52 UTC) #13
mkosiba (inactive)
Thanks Alex! https://codereview.chromium.org/23441020/diff/13001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/23441020/diff/13001/Source/web/WebViewImpl.cpp#newcode2846 Source/web/WebViewImpl.cpp:2846: view->setVisibleContentScaleFactor(1.0f); On 2013/09/06 01:50:06, aelias wrote: > ...
7 years, 3 months ago (2013-09-06 15:48:51 UTC) #14
mkosiba (inactive)
I've added tests and moved some of the code into ScrollView. PTAL and if you ...
7 years, 3 months ago (2013-09-06 16:45:28 UTC) #15
aelias_OOO_until_Jul13
https://codereview.chromium.org/23441020/diff/26001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/23441020/diff/26001/Source/web/WebViewImpl.cpp#newcode1672 Source/web/WebViewImpl.cpp:1672: nit: unnecessary newline diff https://codereview.chromium.org/23441020/diff/26001/Source/web/WebViewImpl.cpp#newcode1689 Source/web/WebViewImpl.cpp:1689: if (scaleMultiplier != ...
7 years, 3 months ago (2013-09-06 23:11:18 UTC) #16
mkosiba (inactive)
https://codereview.chromium.org/23441020/diff/26001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/23441020/diff/26001/Source/web/WebViewImpl.cpp#newcode1672 Source/web/WebViewImpl.cpp:1672: On 2013/09/06 23:11:18, aelias wrote: > nit: unnecessary newline ...
7 years, 3 months ago (2013-09-10 09:11:31 UTC) #17
mkosiba (inactive)
+jamesr for Source/core/platform/ScrollView.h OWNERS review
7 years, 3 months ago (2013-09-10 12:54:45 UTC) #18
aelias_OOO_until_Jul13
https://codereview.chromium.org/23441020/diff/36001/Source/core/platform/ScrollView.cpp File Source/core/platform/ScrollView.cpp (right): https://codereview.chromium.org/23441020/diff/36001/Source/core/platform/ScrollView.cpp#newcode209 Source/core/platform/ScrollView.cpp:209: if (!m_fixedLayoutSizeLock) Hmm, I don't think this is the ...
7 years, 3 months ago (2013-09-10 18:40:18 UTC) #19
mkosiba (inactive)
https://codereview.chromium.org/23441020/diff/36001/Source/core/platform/ScrollView.cpp File Source/core/platform/ScrollView.cpp (right): https://codereview.chromium.org/23441020/diff/36001/Source/core/platform/ScrollView.cpp#newcode209 Source/core/platform/ScrollView.cpp:209: if (!m_fixedLayoutSizeLock) On 2013/09/10 18:40:18, aelias wrote: > Hmm, ...
7 years, 3 months ago (2013-09-11 16:31:17 UTC) #20
aelias_OOO_until_Jul13
Hmm, looks like you forgot to upload the latest patch, so it's unfortunately hard to ...
7 years, 3 months ago (2013-09-11 19:58:38 UTC) #21
mkosiba (inactive)
On 2013/09/11 19:58:38, aelias wrote: > Hmm, looks like you forgot to upload the latest ...
7 years, 3 months ago (2013-09-11 22:21:39 UTC) #22
mkosiba (inactive)
https://codereview.chromium.org/23441020/diff/42001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/23441020/diff/42001/Source/web/WebViewImpl.cpp#newcode3113 Source/web/WebViewImpl.cpp:3113: view->enableVisibleContentSizeScaling(!m_fixedLayoutSizeLock); shall I add a comment on why this ...
7 years, 3 months ago (2013-09-11 22:44:44 UTC) #23
aelias_OOO_until_Jul13
lgtm modulo minor comments below. jamesr@, could you review the Source/core/platform/ changes? https://codereview.chromium.org/23441020/diff/42001/Source/core/platform/ScrollView.cpp File Source/core/platform/ScrollView.cpp ...
7 years, 3 months ago (2013-09-11 22:48:37 UTC) #24
mkosiba (inactive)
I took out disabling visibleContentsRect scaling from this patch and took out dividing the viewport ...
7 years, 3 months ago (2013-09-12 17:01:43 UTC) #25
aelias_OOO_until_Jul13
Still lgtm, that's a great cleanup. jamesr@, could you OWNERS review the small ScrollView.cpp change? ...
7 years, 3 months ago (2013-09-12 18:51:24 UTC) #26
jamesr
lgtm
7 years, 3 months ago (2013-09-12 23:22:31 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/23441020/48001
7 years, 3 months ago (2013-09-13 09:38:04 UTC) #28
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 3 months ago (2013-09-13 10:21:00 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/23441020/48001
7 years, 3 months ago (2013-09-13 11:41:54 UTC) #30
commit-bot: I haz the power
7 years, 3 months ago (2013-09-13 12:33:02 UTC) #31
Message was sent while issue was closed.
Change committed as 157749

Powered by Google App Engine
This is Rietveld 408576698