Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Issue 882683003: Normalize top controls offset to (0, 1), Blink-side. (Closed)

Created:
5 years, 10 months ago by aelias_OOO_until_Jul13
Modified:
5 years, 10 months ago
Reviewers:
bokan, Rick Byers
CC:
blink-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Normalize top controls offset to (0, 1), Blink-side. Since top controls height can now be changed, storing top controls offset as an absolute value causes problems. Normalizing its stored format to (0, 1) means we we don't need to adjust it when the height changes. On the Blink side, Blink now needs to hear about the top controls height, not just the "layout height" (effect on WebViewImpl size, which can be 0), so that it can apply the absolute value to FrameView. The new boolean m_topControlsOffsetIsNormalized is just a temporary hack to allow this patch to be a no-op until the Chromium-side lands. I'll delete it in the same patch as WebWidget::setTopControlsLayoutHeight(). See also Chromium-side patch: https://codereview.chromium.org/901813002 BUG=430635 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189737

Patch Set 1 #

Total comments: 2

Patch Set 2 : Apply bokan@ code review feedback #

Patch Set 3 : Switch unit tests to normalized format #

Total comments: 2

Patch Set 4 : Rename to shownratio #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -66 lines) Patch
M Source/core/frame/FrameView.cpp View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M Source/web/WebViewImpl.h View 1 2 3 4 chunks +17 lines, -9 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 8 chunks +36 lines, -19 lines 0 comments Download
M Source/web/tests/PinchViewportTest.cpp View 1 2 12 chunks +22 lines, -16 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 chunks +14 lines, -13 lines 0 comments Download
M public/platform/WebLayerTreeView.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M public/web/WebWidget.h View 1 2 3 4 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
aelias_OOO_until_Jul13
Hi bokan@, PTAL. This patch is to land first of the two. Then I'll come ...
5 years, 10 months ago (2015-02-05 06:16:54 UTC) #2
bokan
lgtm https://codereview.chromium.org/882683003/diff/1/Source/web/WebViewImpl.h File Source/web/WebViewImpl.h (right): https://codereview.chromium.org/882683003/diff/1/Source/web/WebViewImpl.h#newcode765 Source/web/WebViewImpl.h:765: // as of the last Resize event. It'd ...
5 years, 10 months ago (2015-02-06 08:25:24 UTC) #3
aelias_OOO_until_Jul13
Adding rbyers@ for public/web OWNERS.
5 years, 10 months ago (2015-02-06 08:42:58 UTC) #5
aelias_OOO_until_Jul13
https://codereview.chromium.org/882683003/diff/1/Source/web/WebViewImpl.h File Source/web/WebViewImpl.h (right): https://codereview.chromium.org/882683003/diff/1/Source/web/WebViewImpl.h#newcode765 Source/web/WebViewImpl.h:765: // as of the last Resize event. On 2015/02/06 ...
5 years, 10 months ago (2015-02-06 20:32:38 UTC) #7
Rick Byers
On 2015/02/06 20:32:38, aelias wrote: > https://codereview.chromium.org/882683003/diff/1/Source/web/WebViewImpl.h > File Source/web/WebViewImpl.h (right): > > https://codereview.chromium.org/882683003/diff/1/Source/web/WebViewImpl.h#newcode765 > ...
5 years, 10 months ago (2015-02-07 01:19:16 UTC) #8
aelias_OOO_until_Jul13
There were ~6 existing top controls related tests that well covered this codepath. I changed ...
5 years, 10 months ago (2015-02-07 02:41:03 UTC) #9
Rick Byers
Thanks for the tests, and removing the #ifdef (yay for test coverage on linux of ...
5 years, 10 months ago (2015-02-07 03:13:52 UTC) #10
aelias_OOO_until_Jul13
https://codereview.chromium.org/882683003/diff/40001/public/web/WebWidget.h File public/web/WebWidget.h (right): https://codereview.chromium.org/882683003/diff/40001/public/web/WebWidget.h#newcode277 public/web/WebWidget.h:277: // Notification about the top controls height. If the ...
5 years, 10 months ago (2015-02-07 03:32:08 UTC) #12
Rick Byers
On 2015/02/07 03:32:08, aelias wrote: > https://codereview.chromium.org/882683003/diff/40001/public/web/WebWidget.h > File public/web/WebWidget.h (right): > > https://codereview.chromium.org/882683003/diff/40001/public/web/WebWidget.h#newcode277 > ...
5 years, 10 months ago (2015-02-07 04:23:32 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/882683003/60001
5 years, 10 months ago (2015-02-07 04:41:22 UTC) #15
commit-bot: I haz the power
5 years, 10 months ago (2015-02-07 05:14:37 UTC) #16
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189737

Powered by Google App Engine
This is Rietveld 408576698