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

Issue 496473002: Fix spurious 1px scrolling. (Closed)

Created:
6 years, 4 months ago by mkosiba (inactive)
Modified:
6 years, 4 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, danakj, wjmaclean
Project:
chromium
Visibility:
Public.

Description

Fix spurious 1px scrolling. In the case when the temporary_impl_bounds_ variable is set to ComputeInnerViewportContainerSize() (which is device_viewport_size_ / device_scale_factor()) the value should be rounded up, to match ContentViewCoreImpl::GetViewportSizeDip(). The incorrect rounding is causing the layer to be scrollable when the physical width is not cleanly divisible by the dpi scale. BUG=405580 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291035

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -1 line) Patch
M cc/layers/layer_impl.cc View 1 chunk +1 line, -1 line 2 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
mkosiba (inactive)
PTAL
6 years, 4 months ago (2014-08-20 16:51:32 UTC) #1
danakj
https://codereview.chromium.org/496473002/diff/1/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/496473002/diff/1/cc/layers/layer_impl.cc#newcode772 cc/layers/layer_impl.cc:772: // TODO(wjmaclean) Convert so that bounds returns SizeF. OT: ...
6 years, 4 months ago (2014-08-20 17:00:25 UTC) #2
aelias_OOO_until_Jul13
lgtm https://codereview.chromium.org/496473002/diff/1/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/496473002/diff/1/cc/layers/layer_impl.cc#newcode772 cc/layers/layer_impl.cc:772: // TODO(wjmaclean) Convert so that bounds returns SizeF. ...
6 years, 4 months ago (2014-08-20 18:20:47 UTC) #3
mkosiba (inactive)
The CQ bit was checked by mkosiba@chromium.org
6 years, 4 months ago (2014-08-21 09:08:05 UTC) #4
mkosiba (inactive)
The CQ bit was unchecked by mkosiba@chromium.org
6 years, 4 months ago (2014-08-21 09:08:08 UTC) #5
mkosiba (inactive)
The CQ bit was checked by mkosiba@chromium.org
6 years, 4 months ago (2014-08-21 09:08:23 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/496473002/1
6 years, 4 months ago (2014-08-21 09:09:43 UTC) #7
commit-bot: I haz the power
6 years, 4 months ago (2014-08-21 10:11:42 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (1) as 291035

Powered by Google App Engine
This is Rietveld 408576698