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

Issue 23192002: Let page zoom affect resolution and -webkit-device-pixel-ratio MQs. (Closed)

Created:
7 years, 4 months ago by rune
Modified:
7 years, 4 months ago
Reviewers:
johnme, eae
CC:
blink-reviews, kenneth.christiansen, dglazkov+blink, apavlov+blink_chromium.org, eae+blinkwatch, darktears
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Let page zoom affect resolution and -webkit-device-pixel-ratio MQs. In order to make them consistent with the recent change for window.devicePixelRatio (r156040). BUG=177836 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156113

Patch Set 1 #

Total comments: 5

Patch Set 2 : Review issues: renamed method and return double #

Total comments: 2

Patch Set 3 : Review issue: renamed variable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -16 lines) Patch
A LayoutTests/fast/css/zoom-media-queries-resolution.html View 1 chunk +22 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/zoom-media-queries-resolution-expected.txt View 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/css/MediaQueryEvaluator.cpp View 1 4 chunks +8 lines, -8 lines 0 comments Download
M Source/core/page/DOMWindow.cpp View 1 1 chunk +1 line, -8 lines 0 comments Download
M Source/core/page/Frame.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/page/Frame.cpp View 1 2 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
rune
7 years, 4 months ago (2013-08-14 14:43:51 UTC) #1
johnme
LGTM - thanks Rune. Emil, what do you say?
7 years, 4 months ago (2013-08-14 15:14:48 UTC) #2
eae
https://codereview.chromium.org/23192002/diff/1/Source/core/css/MediaQueryEvaluator.cpp File Source/core/css/MediaQueryEvaluator.cpp (right): https://codereview.chromium.org/23192002/diff/1/Source/core/css/MediaQueryEvaluator.cpp#newcode284 Source/core/css/MediaQueryEvaluator.cpp:284: actualResolution = frame->resolutionDPPX(); Why not use devicePixelRatio directly here? ...
7 years, 4 months ago (2013-08-14 15:20:49 UTC) #3
rune
https://codereview.chromium.org/23192002/diff/1/Source/core/css/MediaQueryEvaluator.cpp File Source/core/css/MediaQueryEvaluator.cpp (right): https://codereview.chromium.org/23192002/diff/1/Source/core/css/MediaQueryEvaluator.cpp#newcode284 Source/core/css/MediaQueryEvaluator.cpp:284: actualResolution = frame->resolutionDPPX(); On 2013/08/14 15:20:49, eae wrote: > ...
7 years, 4 months ago (2013-08-14 15:59:34 UTC) #4
rune
https://codereview.chromium.org/23192002/diff/1/Source/core/page/Frame.cpp File Source/core/page/Frame.cpp (right): https://codereview.chromium.org/23192002/diff/1/Source/core/page/Frame.cpp#newcode712 Source/core/page/Frame.cpp:712: float Frame::resolutionDPPX() const On 2013/08/14 15:59:34, rune wrote: > ...
7 years, 4 months ago (2013-08-14 16:04:43 UTC) #5
eae
On 2013/08/14 15:59:34, rune wrote: > https://codereview.chromium.org/23192002/diff/1/Source/core/css/MediaQueryEvaluator.cpp > File Source/core/css/MediaQueryEvaluator.cpp (right): > > https://codereview.chromium.org/23192002/diff/1/Source/core/css/MediaQueryEvaluator.cpp#newcode284 > ...
7 years, 4 months ago (2013-08-14 16:06:03 UTC) #6
rune
eae: are you OK with patch set 2?
7 years, 4 months ago (2013-08-14 16:15:20 UTC) #7
eae
LGTM Looks good with the following change. https://codereview.chromium.org/23192002/diff/9001/Source/core/page/Frame.cpp File Source/core/page/Frame.cpp (right): https://codereview.chromium.org/23192002/diff/9001/Source/core/page/Frame.cpp#newcode717 Source/core/page/Frame.cpp:717: double resolution ...
7 years, 4 months ago (2013-08-14 16:33:38 UTC) #8
rune
https://codereview.chromium.org/23192002/diff/9001/Source/core/page/Frame.cpp File Source/core/page/Frame.cpp (right): https://codereview.chromium.org/23192002/diff/9001/Source/core/page/Frame.cpp#newcode717 Source/core/page/Frame.cpp:717: double resolution = m_page->deviceScaleFactor(); On 2013/08/14 16:33:39, eae wrote: ...
7 years, 4 months ago (2013-08-14 19:11:22 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/23192002/18001
7 years, 4 months ago (2013-08-14 19:11:41 UTC) #10
commit-bot: I haz the power
7 years, 4 months ago (2013-08-14 20:41:22 UTC) #11
Message was sent while issue was closed.
Change committed as 156113

Powered by Google App Engine
This is Rietveld 408576698