Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(123)

Issue 1071383002: Round when calculating minimum height of WebViews (Closed)

Created:
5 years ago by kraush
Modified:
4 years, 11 months ago
CC:
blink-reviews, hush (inactive)
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Round when calculating minimum height of WebViews Currently WebViews will truncate pixel numbers when calculating the minimum height for WebViews. This will lead to incorrect results on some devices, which consider the default zoom level to be slightly less than 1 and truncate at multiplication. Adding .5 before truncating numbers is a simple and efficient way to round, thus leading to correct sizes on all devices. BUG=475730 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196530

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added test that rounds down #

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

Messages

Total messages: 31 (8 generated)
kraush
Hi Ken, Here's a proposed fix for bug number 475730. PTAL Thanks! :) Holger
5 years ago (2015-04-09 23:14:41 UTC) #2
Ken Russell (switch to Gerrit)
I'm not a good reviewer for this change. CC'ing a few others who may be ...
5 years ago (2015-04-10 02:02:54 UTC) #4
aelias_OOO_until_Jul13
Looks like the linked bug refers to an float epsilon error. In general, I think ...
5 years ago (2015-04-10 02:40:41 UTC) #5
kraush
On 2015/04/10 02:40:41, aelias wrote: > Looks like the linked bug refers to an float ...
5 years ago (2015-04-10 15:51:57 UTC) #8
esprehn
What changed between Android 4.4.2 and 4.4.3 ?
5 years ago (2015-04-11 02:11:48 UTC) #9
kraush
On 2015/04/11 02:11:48, esprehn wrote: > What changed between Android 4.4.2 and 4.4.3 ? The ...
5 years ago (2015-04-11 02:58:58 UTC) #10
aelias_OOO_until_Jul13
Hmm, but Chromium has no plans to ship new WebViews on <5.0, so if the ...
5 years ago (2015-04-13 03:12:52 UTC) #11
kraush
On 2015/04/13 03:12:52, aelias wrote: > Hmm, but Chromium has no plans to ship new ...
5 years ago (2015-04-13 16:11:21 UTC) #12
aelias_OOO_until_Jul13
Can you clarify what you're hoping to achieve with that? Is it just on principle ...
5 years ago (2015-04-15 18:08:50 UTC) #13
kraush
On 2015/04/15 18:08:50, aelias wrote: > Can you clarify what you're hoping to achieve with ...
5 years ago (2015-04-15 20:31:55 UTC) #14
aelias_OOO_until_Jul13
On 2015/04/15 at 20:31:55, kraush wrote: > However since this also breaks a test on ...
5 years ago (2015-04-16 15:51:28 UTC) #16
leviw_travelin_and_unemployed
On 2015/04/16 at 15:51:28, aelias wrote: > On 2015/04/15 at 20:31:55, kraush wrote: > > ...
4 years, 11 months ago (2015-05-11 03:14:46 UTC) #17
kraush
On 2015/05/11 03:14:46, leviw wrote: > On 2015/04/16 at 15:51:28, aelias wrote: > > On ...
4 years, 11 months ago (2015-05-11 16:04:13 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1071383002/1
4 years, 11 months ago (2015-05-13 00:26:59 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2015-05-13 01:49:54 UTC) #22
kraush
On 2015/05/13 01:49:54, I haz the power (commit-bot) wrote: > Dry run: This issue passed ...
4 years, 11 months ago (2015-05-20 21:50:47 UTC) #23
leviw_travelin_and_unemployed
Code change seems fine. Can we get some more coverage? https://codereview.chromium.org/1071383002/diff/1/Source/web/tests/WebViewTest.cpp File Source/web/tests/WebViewTest.cpp (right): https://codereview.chromium.org/1071383002/diff/1/Source/web/tests/WebViewTest.cpp#newcode2353 ...
4 years, 11 months ago (2015-05-20 22:05:06 UTC) #24
leviw_travelin_and_unemployed
Ping :)
4 years, 11 months ago (2015-05-21 18:39:02 UTC) #25
kraush
On 2015/05/21 18:39:02, leviw wrote: > Ping :) Added a test that rounds down as ...
4 years, 11 months ago (2015-05-21 20:56:46 UTC) #26
leviw_travelin_and_unemployed
On 2015/05/21 at 20:56:46, kraush wrote: > On 2015/05/21 18:39:02, leviw wrote: > > Ping ...
4 years, 11 months ago (2015-05-21 21:11:51 UTC) #27
aelias_OOO_until_Jul13
lgtm
4 years, 11 months ago (2015-06-04 19:04:49 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1071383002/20001
4 years, 11 months ago (2015-06-04 20:14:26 UTC) #30
commit-bot: I haz the power
4 years, 11 months ago (2015-06-04 21:22:07 UTC) #31
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196530

Powered by Google App Engine
This is Rietveld 408576698