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

Issue 2747623002: Avoid clearing a page's layout overflow after paginated layout (Closed)

Created:
3 years, 9 months ago by rhogan
Modified:
3 years, 8 months ago
Reviewers:
Lei Zhang, nainar, esprehn
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid clearing a page's layout overflow after paginated layout This was flushed out by https://codereview.chromium.org/2089373002. If we've forced a layout on paged media and find that our width exceeds the page's then we may end up needing to clip some of the horizontal overflow. We do this by calculating it manually and storing it as layout overflow. However if our scrollbars are changing we will force another layout on the frame that overwrites this good work. So make sure we preserve any clipped overflow on the frame. It's very hard to reproduce print preview issues reliably but fortunately this specific issue can be recreated during layout testing by using @media page rules so that's how we reproduce it here. I was going to revert the CL in 2089373002 but it's very hard to prove either way that that is achieving anything - this change on the other hand has an intelligible rationale and does ensure the expected clipping of width. Related bugs potentially fixed by this are 660058 and 690621. BUG=664235 Review-Url: https://codereview.chromium.org/2747623002 Cr-Commit-Position: refs/heads/master@{#460292} Committed: https://chromium.googlesource.com/chromium/src/+/593eebedc4013ea212b05c21dba300d41a6d7977

Patch Set 1 #

Patch Set 2 : bug 664235 #

Patch Set 3 : bug 664235 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -2 lines) Patch
A third_party/WebKit/LayoutTests/printing/respect-layout-overflow-from-pagination.html View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/printing/respect-layout-overflow-from-pagination-expected.html View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 31 (19 generated)
rhogan
Hi guys - haven't managed to get a working test going yet, but what do ...
3 years, 9 months ago (2017-03-13 21:12:31 UTC) #7
Lei Zhang
I defer to nainar and will stamp whatever solution y'all agree on.
3 years, 9 months ago (2017-03-15 01:48:38 UTC) #8
nainar
lgtm
3 years, 9 months ago (2017-03-15 06:28:41 UTC) #9
esprehn
Can you explain in the description why this fixes all those linked bugs?
3 years, 9 months ago (2017-03-15 06:34:20 UTC) #10
rhogan
On 2017/03/15 at 06:34:20, esprehn wrote: > Can you explain in the description why this ...
3 years, 9 months ago (2017-03-23 11:45:18 UTC) #11
esprehn
On 2017/03/23 at 11:45:18, robhogan wrote: > On 2017/03/15 at 06:34:20, esprehn wrote: > > ...
3 years, 9 months ago (2017-03-24 01:57:49 UTC) #12
rhogan
On 2017/03/24 at 01:57:49, esprehn wrote: > Okay sgtm. Fix a subset of the regressions ...
3 years, 9 months ago (2017-03-24 20:59:54 UTC) #13
esprehn
On 2017/03/24 at 20:59:54, robhogan wrote: > On 2017/03/24 at 01:57:49, esprehn wrote: > > ...
3 years, 9 months ago (2017-03-24 21:56:24 UTC) #14
rhogan
On 2017/03/24 at 21:56:24, esprehn wrote: > On 2017/03/24 at 20:59:54, robhogan wrote: > > ...
3 years, 8 months ago (2017-03-28 18:09:23 UTC) #22
esprehn
lgtm
3 years, 8 months ago (2017-03-28 21:34:27 UTC) #25
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/2747623002/40001
3 years, 8 months ago (2017-03-29 05:40:19 UTC) #28
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 05:46:11 UTC) #31
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/593eebedc4013ea212b05c21dba3...

Powered by Google App Engine
This is Rietveld 408576698