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

Issue 251063002: Use plus/minus 0.5 instead of 1 when calculating zoomed length. (Closed)

Created:
6 years, 8 months ago by wjywbs
Modified:
6 years, 7 months ago
CC:
blink-reviews, chrishtr, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, pdr., ojan, rune+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Use plus/minus 0.5 instead of 1 when calculating zoomed length. Plus/minus 0.5 to the truncated value is more reasonable than directly adding 1, because 0.5 is the average of the fraction value. This patch fixes Acid3 test 99/100 when zoom is 125%, and also improves overall image zooming. This patch requires a content shell change to set zoom factor in script (CL 253493006). BUG=360713 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172977

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -8 lines) Patch
A LayoutTests/fast/images/zoomed-img-height-acid3.html View 1 chunk +34 lines, -0 lines 0 comments Download
A LayoutTests/fast/images/zoomed-img-height-acid3-expected.txt View 1 chunk +13 lines, -0 lines 0 comments Download
M LayoutTests/fast/images/zoomed-img-size.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/images/zoomed-img-size-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/media/mq-width-on-zoom-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/style/RenderStyle.h View 1 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
wjywbs
Please take a look. Thanks.
6 years, 8 months ago (2014-04-27 18:22:30 UTC) #1
ojan
6 years, 8 months ago (2014-04-27 18:57:46 UTC) #2
eae
https://codereview.chromium.org/251063002/diff/1/Source/core/rendering/style/RenderStyle.h File Source/core/rendering/style/RenderStyle.h (right): https://codereview.chromium.org/251063002/diff/1/Source/core/rendering/style/RenderStyle.h#newcode1791 Source/core/rendering/style/RenderStyle.h:1791: inline int adjustForAbsoluteZoom(int value, float zoomFactor) We really shouldn't ...
6 years, 7 months ago (2014-04-28 14:44:47 UTC) #3
wjywbs
On 2014/04/28 14:44:47, eae wrote: > https://codereview.chromium.org/251063002/diff/1/Source/core/rendering/style/RenderStyle.h > File Source/core/rendering/style/RenderStyle.h (right): > > https://codereview.chromium.org/251063002/diff/1/Source/core/rendering/style/RenderStyle.h#newcode1791 > ...
6 years, 7 months ago (2014-04-29 02:13:03 UTC) #4
leviw_travelin_and_unemployed
LGTM. eae may have a bug to point that fixme at. It'd be nice to ...
6 years, 7 months ago (2014-04-29 02:36:04 UTC) #5
eae
LGTM
6 years, 7 months ago (2014-04-29 15:43:47 UTC) #6
eae
The CQ bit was checked by eae@chromium.org
6 years, 7 months ago (2014-04-29 15:43:57 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjywbs@gmail.com/251063002/20001
6 years, 7 months ago (2014-04-29 15:44:17 UTC) #8
wjywbs
The CQ bit was unchecked by wjywbs@gmail.com
6 years, 7 months ago (2014-04-29 15:47:55 UTC) #9
wjywbs
On 2014/04/29 15:43:57, eae wrote: > The CQ bit was checked by eae@chromium.org Thanks, but ...
6 years, 7 months ago (2014-04-29 15:50:04 UTC) #10
wjywbs
The CQ bit was checked by wjywbs@gmail.com
6 years, 7 months ago (2014-04-30 11:58:51 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjywbs@gmail.com/251063002/20001
6 years, 7 months ago (2014-04-30 11:58:59 UTC) #12
commit-bot: I haz the power
6 years, 7 months ago (2014-04-30 14:46:59 UTC) #13
Message was sent while issue was closed.
Change committed as 172977

Powered by Google App Engine
This is Rietveld 408576698