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

Issue 462243002: Make logical height calculations on RenderView use unscaled FrameRect (Closed)

Created:
6 years, 4 months ago by bokan
Modified:
6 years, 4 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr., rune+blink, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Make logical height calculations on RenderView use unscaled FrameRect RenderBox's methods for computing logical height would use frameView()->visibleWidth() and visibleHeight() once they reach the RenderView. These methods return the frame's dimensions divided by the content scale factor (i.e. pinch-zoom). This was causing problems in the linked bug since the method would remove scrollbars before applying scale, causing the removed scrollbar area to scale with the page. This CL changes the occurances of visibleWidth/Height to unscaledVisibleContentSize(). BUG=362337 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180471

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Added test #

Total comments: 10

Patch Set 4 : Fixed up test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -2 lines) Patch
A LayoutTests/plugins/page-scale-does-not-affect-plugin-height.html View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
A LayoutTests/plugins/page-scale-does-not-affect-plugin-height-expected.txt View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderBox.cpp View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
bokan
Hi Julien, PTAL? I'm not really sure how to test this and I think it'd ...
6 years, 4 months ago (2014-08-12 23:06:08 UTC) #1
Julien - ping for review
The change looks fine but can't we have a test for that? https://codereview.chromium.org/462243002/diff/20001/Source/core/rendering/RenderBox.cpp File Source/core/rendering/RenderBox.cpp ...
6 years, 4 months ago (2014-08-15 18:25:19 UTC) #2
bokan
PTAL, test added and the visibleWidth/Height concern (hopefully) addressed. Thanks. https://codereview.chromium.org/462243002/diff/20001/Source/core/rendering/RenderBox.cpp File Source/core/rendering/RenderBox.cpp (right): https://codereview.chromium.org/462243002/diff/20001/Source/core/rendering/RenderBox.cpp#newcode2858 ...
6 years, 4 months ago (2014-08-15 22:50:42 UTC) #3
Julien - ping for review
lgtm https://codereview.chromium.org/462243002/diff/40001/LayoutTests/plugins/page-scale-does-not-affect-plugin-height.html File LayoutTests/plugins/page-scale-does-not-affect-plugin-height.html (right): https://codereview.chromium.org/462243002/diff/40001/LayoutTests/plugins/page-scale-does-not-affect-plugin-height.html#newcode1 LayoutTests/plugins/page-scale-does-not-affect-plugin-height.html:1: <title> DOCTYPE PLEASE!! https://codereview.chromium.org/462243002/diff/40001/LayoutTests/plugins/page-scale-does-not-affect-plugin-height.html#newcode2 LayoutTests/plugins/page-scale-does-not-affect-plugin-height.html:2: This test checks ...
6 years, 4 months ago (2014-08-16 00:54:17 UTC) #4
bokan
https://codereview.chromium.org/462243002/diff/40001/LayoutTests/plugins/page-scale-does-not-affect-plugin-height.html File LayoutTests/plugins/page-scale-does-not-affect-plugin-height.html (right): https://codereview.chromium.org/462243002/diff/40001/LayoutTests/plugins/page-scale-does-not-affect-plugin-height.html#newcode1 LayoutTests/plugins/page-scale-does-not-affect-plugin-height.html:1: <title> On 2014/08/16 00:54:16, Julien Chaffraix - PST wrote: ...
6 years, 4 months ago (2014-08-18 14:27:33 UTC) #5
bokan
The CQ bit was checked by bokan@chromium.org
6 years, 4 months ago (2014-08-18 14:27:40 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bokan@chromium.org/462243002/60001
6 years, 4 months ago (2014-08-18 14:28:13 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_rel on tryserver.blink ...
6 years, 4 months ago (2014-08-18 15:39:33 UTC) #8
commit-bot: I haz the power
6 years, 4 months ago (2014-08-18 16:14:01 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (60001) as 180471

Powered by Google App Engine
This is Rietveld 408576698