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

Issue 2351283003: Applies zoom factor to the spinner size (Closed)

Created:
4 years, 3 months ago by malaykeshav
Modified:
4 years, 3 months ago
Reviewers:
oshima, Bret, Xianzhu
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Applies zoom factor to the spinner size The spinner element was not being scaled on browser zoom before this modification. This also led to the same spinner element being laid out differently when displayed on HiDPI displays with zoom-for-dsf enabled. BUG=640256 COMPONENT=Layout Theme, Zoom DSF Committed: https://crrev.com/cfafa095f265ed2921a85b75165548d83e9c8339 Cr-Commit-Position: refs/heads/master@{#420185}

Patch Set 1 #

Patch Set 2 : Applies zoom factor to the spinner size #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -2 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutThemeDefault.cpp View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (14 generated)
malaykeshav
4 years, 3 months ago (2016-09-20 22:05:02 UTC) #4
malaykeshav
PTAL.
4 years, 3 months ago (2016-09-21 18:51:24 UTC) #13
Xianzhu
Is this the standard way to apply zoom factor? How do we apply zoom for ...
4 years, 3 months ago (2016-09-21 19:04:23 UTC) #14
malaykeshav
On 2016/09/21 at 19:04:23, wangxianzhu wrote: > Is this the standard way to apply zoom ...
4 years, 3 months ago (2016-09-21 19:49:03 UTC) #15
malaykeshav
@oshima is OOO this week. Adding @bsep
4 years, 3 months ago (2016-09-21 19:51:49 UTC) #17
Xianzhu
I think we should not apply zoom in this way. We should let the theme ...
4 years, 3 months ago (2016-09-21 19:57:34 UTC) #18
Bret
On 2016/09/21 19:57:34, Xianzhu wrote: > I think we should not apply zoom in this ...
4 years, 3 months ago (2016-09-21 20:05:35 UTC) #19
Xianzhu
OK. lgtm. However, I feel we should optimize how we apply zoom.
4 years, 3 months ago (2016-09-21 22:34:50 UTC) #20
malaykeshav
On 2016/09/21 at 19:57:34, wangxianzhu wrote: > I think we should not apply zoom in ...
4 years, 3 months ago (2016-09-21 22:35:04 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2351283003/20001
4 years, 3 months ago (2016-09-21 22:36:04 UTC) #23
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-21 22:42:19 UTC) #24
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/cfafa095f265ed2921a85b75165548d83e9c8339 Cr-Commit-Position: refs/heads/master@{#420185}
4 years, 3 months ago (2016-09-21 22:44:59 UTC) #26
Xianzhu
Sorry I'm not familiar with the area. A dumb question: for a css 'width: 15px', ...
4 years, 3 months ago (2016-09-21 23:26:23 UTC) #27
malaykeshav
On 2016/09/21 at 23:26:23, wangxianzhu wrote: > Sorry I'm not familiar with the area. A ...
4 years, 3 months ago (2016-09-22 01:25:30 UTC) #28
malaykeshav
4 years, 3 months ago (2016-09-22 01:25:41 UTC) #29
Message was sent while issue was closed.
On 2016/09/22 at 01:25:30, malaykeshav wrote:
> On 2016/09/21 at 23:26:23, wangxianzhu wrote:
> > Sorry I'm not familiar with the area. A dumb question: for a css 'width:
15px', and zoom==2, does the zoom double the size of CSS pixels (so computed
width is still 15px) or double the computed width to 30px?
> 
> Logical width would still be 15px. But if it too x physical pixels to draw the
line of width 15px on 100% browser zoom, then it would take 2 times the number
of physical pixels (2 * x pixels) to draw the same line on 200% browser zoom.

took*

Powered by Google App Engine
This is Rietveld 408576698