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

Issue 2738173002: Initial containing block for print not affected by page zoom. (Closed)

Created:
3 years, 9 months ago by rune
Modified:
3 years, 9 months ago
Reviewers:
bokan
CC:
chromium-reviews, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, blink-reviews-frames_chromium.org, kinuko+watch, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Initial containing block for print not affected by page zoom. The page zoom factor is not applied to the ICB for printing, yet the ICB basis for media queries and viewport units were. Use 1 as a page zoom factor in viewportSizeForViewportUnits and use that method to get the size for the ICB for evaluating media queries. BUG=699014, 699910 Review-Url: https://codereview.chromium.org/2738173002 Cr-Commit-Position: refs/heads/master@{#456040} Committed: https://chromium.googlesource.com/chromium/src/+/de209f3db7bbfda754be262cef35b67340c37774

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add viewportSizeForMediaQueries. #

Total comments: 2

Patch Set 3 : Added documentation. #

Patch Set 4 : Missing IncludeScrollbars. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -21 lines) Patch
M third_party/WebKit/Source/core/css/MediaValues.cpp View 1 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 2 chunks +10 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 5 chunks +95 lines, -14 lines 0 comments Download

Messages

Total messages: 29 (16 generated)
rune
ptal
3 years, 9 months ago (2017-03-09 10:37:46 UTC) #4
bokan
https://codereview.chromium.org/2738173002/diff/1/third_party/WebKit/Source/core/css/MediaValues.cpp File third_party/WebKit/Source/core/css/MediaValues.cpp (right): https://codereview.chromium.org/2738173002/diff/1/third_party/WebKit/Source/core/css/MediaValues.cpp#newcode40 third_party/WebKit/Source/core/css/MediaValues.cpp:40: return frame->view()->viewportSizeForViewportUnits().height(); I think this is slightly wrong. The ...
3 years, 9 months ago (2017-03-09 16:29:56 UTC) #7
bokan
On 2017/03/09 16:29:56, bokan wrote: > https://codereview.chromium.org/2738173002/diff/1/third_party/WebKit/Source/core/css/MediaValues.cpp > File third_party/WebKit/Source/core/css/MediaValues.cpp (right): > > https://codereview.chromium.org/2738173002/diff/1/third_party/WebKit/Source/core/css/MediaValues.cpp#newcode40 > ...
3 years, 9 months ago (2017-03-09 16:45:02 UTC) #8
rune
https://codereview.chromium.org/2738173002/diff/1/third_party/WebKit/Source/core/css/MediaValues.cpp File third_party/WebKit/Source/core/css/MediaValues.cpp (right): https://codereview.chromium.org/2738173002/diff/1/third_party/WebKit/Source/core/css/MediaValues.cpp#newcode40 third_party/WebKit/Source/core/css/MediaValues.cpp:40: return frame->view()->viewportSizeForViewportUnits().height(); On 2017/03/09 16:29:56, bokan wrote: > I ...
3 years, 9 months ago (2017-03-09 17:47:36 UTC) #9
bokan
On 2017/03/09 17:47:36, rune wrote: > https://codereview.chromium.org/2738173002/diff/1/third_party/WebKit/Source/core/css/MediaValues.cpp > File third_party/WebKit/Source/core/css/MediaValues.cpp (right): > > https://codereview.chromium.org/2738173002/diff/1/third_party/WebKit/Source/core/css/MediaValues.cpp#newcode40 > ...
3 years, 9 months ago (2017-03-09 18:21:25 UTC) #10
rune
On 2017/03/09 16:45:02, bokan wrote: > On 2017/03/09 16:29:56, bokan wrote: > It just occurred ...
3 years, 9 months ago (2017-03-09 22:04:46 UTC) #11
rune
https://codereview.chromium.org/2738173002/diff/1/third_party/WebKit/Source/core/css/MediaValues.cpp File third_party/WebKit/Source/core/css/MediaValues.cpp (right): https://codereview.chromium.org/2738173002/diff/1/third_party/WebKit/Source/core/css/MediaValues.cpp#newcode40 third_party/WebKit/Source/core/css/MediaValues.cpp:40: return frame->view()->viewportSizeForViewportUnits().height(); On 2017/03/09 16:29:56, bokan wrote: > I ...
3 years, 9 months ago (2017-03-09 22:04:55 UTC) #12
bokan
On 2017/03/09 22:04:46, rune wrote: > On 2017/03/09 16:45:02, bokan wrote: > > On 2017/03/09 ...
3 years, 9 months ago (2017-03-09 22:56:22 UTC) #15
bokan
Thanks, lgtm https://codereview.chromium.org/2738173002/diff/20001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2738173002/diff/20001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode1410 third_party/WebKit/Source/core/frame/FrameView.cpp:1410: zoom = frame().pageZoomFactor(); On 2017/03/09 22:04:55, rune ...
3 years, 9 months ago (2017-03-09 22:58:06 UTC) #16
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/2738173002/40001
3 years, 9 months ago (2017-03-10 00:10:36 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/406193)
3 years, 9 months ago (2017-03-10 01:27:36 UTC) #23
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/2738173002/60001
3 years, 9 months ago (2017-03-10 09:53:41 UTC) #26
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 11:13:04 UTC) #29
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/de209f3db7bbfda754be262cef35...

Powered by Google App Engine
This is Rietveld 408576698