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

Issue 2643903002: Fix viewport unit sizes when printing. (Closed)

Created:
3 years, 11 months ago by bokan
Modified:
3 years, 11 months ago
Reviewers:
rune
CC:
chromium-reviews, blink-reviews, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix viewport unit sizes when printing. FrameView::viewportSizeForViewportUnits had a special path for inert top controls that used FrameView::layoutSize directly. The old path used LayoutView::viewWidth and LayoutView::viewHeight which normally resolve to FrameView::layoutSize but has a special case for when we're in printing mode. This patch uses the LayoutView version and only special cases the adjustment made for the URL bar. BUG=678414 Review-Url: https://codereview.chromium.org/2643903002 Cr-Commit-Position: refs/heads/master@{#444803} Committed: https://chromium.googlesource.com/chromium/src/+/b9d998089be2a4ee8a304730a814386168f84641

Patch Set 1 #

Patch Set 2 : Updated rune@'s test instead #

Total comments: 6

Patch Set 3 : Fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -33 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 chunk +23 lines, -28 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 2 chunks +28 lines, -5 lines 0 comments Download

Messages

Total messages: 23 (15 generated)
bokan
ptal
3 years, 11 months ago (2017-01-18 18:43:33 UTC) #5
bokan
On 2017/01/18 18:43:33, bokan wrote: > ptal Actually, hold off while I figure out the ...
3 years, 11 months ago (2017-01-18 19:32:56 UTC) #8
bokan
-skobes@ +rune@ since it seems you've recently dealt with a similar issue. I think the ...
3 years, 11 months ago (2017-01-19 00:29:08 UTC) #14
rune
On 2017/01/19 00:29:08, bokan wrote: > -skobes@ +rune@ since it seems you've recently dealt with ...
3 years, 11 months ago (2017-01-19 08:59:00 UTC) #15
rune
lgtm with nit(s). https://codereview.chromium.org/2643903002/diff/20001/third_party/WebKit/Source/web/tests/WebViewTest.cpp File third_party/WebKit/Source/web/tests/WebViewTest.cpp (right): https://codereview.chromium.org/2643903002/diff/20001/third_party/WebKit/Source/web/tests/WebViewTest.cpp#newcode4339 third_party/WebKit/Source/web/tests/WebViewTest.cpp:4339: " body { margin: 0px; }" ...
3 years, 11 months ago (2017-01-19 08:59:24 UTC) #16
bokan
https://codereview.chromium.org/2643903002/diff/20001/third_party/WebKit/Source/web/tests/WebViewTest.cpp File third_party/WebKit/Source/web/tests/WebViewTest.cpp (right): https://codereview.chromium.org/2643903002/diff/20001/third_party/WebKit/Source/web/tests/WebViewTest.cpp#newcode4339 third_party/WebKit/Source/web/tests/WebViewTest.cpp:4339: " body { margin: 0px; }" On 2017/01/19 08:59:24, ...
3 years, 11 months ago (2017-01-19 16:26:35 UTC) #17
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/2643903002/40001
3 years, 11 months ago (2017-01-19 16:27:12 UTC) #20
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 18:55:18 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/b9d998089be2a4ee8a304730a814...

Powered by Google App Engine
This is Rietveld 408576698