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

Issue 1291723005: Update WebViewImpl::contentsPreferredMinimumSize to be agnostic to the scrolling element (Closed)

Created:
5 years, 4 months ago by Rick Byers
Modified:
5 years, 4 months ago
Reviewers:
bokan
CC:
blink-reviews
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Update WebViewImpl::contentsPreferredMinimumSize to be agnostic to the scrolling element When the scrollingElement is the documentElement, documentElement.scrollHeight behaves differently (and in unit tests may return 0). So make sure that contentsPreferredMinimumSize always uses the document element's layout box directly. This is a no-op today, but will ensure the behavior of this API doesn't change when we enable the scrollTopLeftInterop feature. BUG=157855 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200540

Patch Set 1 #

Total comments: 2

Patch Set 2 : Cleanup double zoom code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M Source/web/WebViewImpl.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (6 generated)
Rick Byers
bokan@ PTAL This doesn't update any tests because today in unit tests the scrollingElement is ...
5 years, 4 months ago (2015-08-13 00:57:32 UTC) #2
bokan
https://codereview.chromium.org/1291723005/diff/1/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/1291723005/diff/1/Source/web/WebViewImpl.cpp#newcode3406 Source/web/WebViewImpl.cpp:3406: int heightScaled = static_cast<int>(adjustLayoutUnitForAbsoluteZoom(box->scrollHeight(), *box) * zoomLevelToZoomFactor(zoomLevel()) + 0.5); ...
5 years, 4 months ago (2015-08-13 15:49:04 UTC) #3
Rick Byers
https://codereview.chromium.org/1291723005/diff/1/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/1291723005/diff/1/Source/web/WebViewImpl.cpp#newcode3406 Source/web/WebViewImpl.cpp:3406: int heightScaled = static_cast<int>(adjustLayoutUnitForAbsoluteZoom(box->scrollHeight(), *box) * zoomLevelToZoomFactor(zoomLevel()) + 0.5); ...
5 years, 4 months ago (2015-08-13 16:51:54 UTC) #4
bokan
On 2015/08/13 16:51:54, Rick Byers wrote: > https://codereview.chromium.org/1291723005/diff/1/Source/web/WebViewImpl.cpp > File Source/web/WebViewImpl.cpp (right): > > https://codereview.chromium.org/1291723005/diff/1/Source/web/WebViewImpl.cpp#newcode3406 ...
5 years, 4 months ago (2015-08-13 17:33:23 UTC) #5
Rick Byers
On 2015/08/13 17:33:23, bokan wrote: > On 2015/08/13 16:51:54, Rick Byers wrote: > > https://codereview.chromium.org/1291723005/diff/1/Source/web/WebViewImpl.cpp ...
5 years, 4 months ago (2015-08-13 18:28:37 UTC) #6
bokan
On 2015/08/13 18:28:37, Rick Byers wrote: > On 2015/08/13 17:33:23, bokan wrote: > > On ...
5 years, 4 months ago (2015-08-13 18:33:33 UTC) #7
Rick Byers
On 2015/08/13 18:33:33, bokan wrote: > On 2015/08/13 18:28:37, Rick Byers wrote: > > On ...
5 years, 4 months ago (2015-08-13 20:27:16 UTC) #8
bokan
> Nope the code was already updating layout. It's really stupid actually - > adjustLayoutUnitForAbsoluteZoom ...
5 years, 4 months ago (2015-08-13 20:32:09 UTC) #9
Rick Byers
On 2015/08/13 20:32:09, bokan wrote: > > Nope the code was already updating layout. It's ...
5 years, 4 months ago (2015-08-13 20:53:36 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1291723005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1291723005/20001
5 years, 4 months ago (2015-08-13 20:54:00 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/92918)
5 years, 4 months ago (2015-08-13 22:07:56 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1291723005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1291723005/20001
5 years, 4 months ago (2015-08-13 23:07:44 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/93008)
5 years, 4 months ago (2015-08-14 01:14:02 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1291723005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1291723005/20001
5 years, 4 months ago (2015-08-14 13:06:28 UTC) #20
commit-bot: I haz the power
5 years, 4 months ago (2015-08-14 14:15:03 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=200540

Powered by Google App Engine
This is Rietveld 408576698