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

Issue 2605333002: [SPInvalidation] Fix fixed-position printing (Closed)

Created:
3 years, 11 months ago by Xianzhu
Modified:
3 years, 11 months ago
Reviewers:
chrishtr
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[SPInvalidation] Fix fixed-position printing Previously the fragments for fixed-position in non-transformed path didn't have correct layerBounds and foregroundRect, causing nothing painted. Change collectPaintFragmentsForPaginatedFixedPosition() to repeatFixedPositionObjectInPages(), and let the single-fragment path generate the first fragment (which has appropriate layerBounds and foregroundRect), and the new function repeats the fragment for pages with adjusted paginationOffset and layerBounds. BUG=646176 TEST=printing/fixed*.html CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/574be21bec113164af880b853f9f25209183ae90 Cr-Commit-Position: refs/heads/master@{#441235}

Patch Set 1 #

Patch Set 2 : Fix scrolled #

Total comments: 10

Patch Set 3 : - #

Total comments: 2

Patch Set 4 : - #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -66 lines) Patch
M third_party/WebKit/Source/core/paint/PaintLayerPainter.h View 1 2 3 1 chunk +9 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp View 1 2 3 4 chunks +70 lines, -65 lines 0 comments Download

Messages

Total messages: 30 (17 generated)
Xianzhu
3 years, 11 months ago (2016-12-29 20:19:38 UTC) #5
Xianzhu
Uploaded Patch Set 2 with a small change fixing virtual/spinvalidation/printing/fixed-positioned-scrolled.html failure of Patch Set 1.
3 years, 11 months ago (2016-12-29 22:55:12 UTC) #10
chrishtr
https://codereview.chromium.org/2605333002/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp File third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp (right): https://codereview.chromium.org/2605333002/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp#newcode430 third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp:430: repeatFixedPositionObjectInPages(paintingInfo, layerFragments); It's only possible in single-fragment mode? https://codereview.chromium.org/2605333002/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp#newcode628 ...
3 years, 11 months ago (2016-12-30 00:10:50 UTC) #11
Xianzhu
https://codereview.chromium.org/2605333002/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp File third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp (right): https://codereview.chromium.org/2605333002/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp#newcode430 third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp:430: repeatFixedPositionObjectInPages(paintingInfo, layerFragments); On 2016/12/30 00:10:50, chrishtr wrote: > It's ...
3 years, 11 months ago (2016-12-30 00:52:41 UTC) #12
chrishtr
https://codereview.chromium.org/2605333002/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp File third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp (right): https://codereview.chromium.org/2605333002/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp#newcode626 third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp:626: PaintLayerFragment fragment = layerFragments[i - 1]; What guarantees that ...
3 years, 11 months ago (2017-01-03 18:25:09 UTC) #15
Xianzhu
On 2017/01/03 18:25:09, chrishtr wrote: > https://codereview.chromium.org/2605333002/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp > File third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp (right): > > https://codereview.chromium.org/2605333002/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp#newcode626 > ...
3 years, 11 months ago (2017-01-03 18:34:38 UTC) #16
chrishtr
https://codereview.chromium.org/2605333002/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp File third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp (right): https://codereview.chromium.org/2605333002/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp#newcode626 third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp:626: PaintLayerFragment fragment = layerFragments[i - 1]; On 2017/01/03 at ...
3 years, 11 months ago (2017-01-03 18:53:10 UTC) #17
Xianzhu
https://codereview.chromium.org/2605333002/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerPainter.h File third_party/WebKit/Source/core/paint/PaintLayerPainter.h (right): https://codereview.chromium.org/2605333002/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerPainter.h#newcode60 third_party/WebKit/Source/core/paint/PaintLayerPainter.h:60: void repeatFixedPositionObjectInPages(const PaintLayerPaintingInfo&, On 2017/01/03 18:53:10, chrishtr wrote: > ...
3 years, 11 months ago (2017-01-03 19:54:42 UTC) #18
chrishtr
lgtm https://codereview.chromium.org/2605333002/diff/40001/third_party/WebKit/Source/core/paint/PaintLayerPainter.h File third_party/WebKit/Source/core/paint/PaintLayerPainter.h (right): https://codereview.chromium.org/2605333002/diff/40001/third_party/WebKit/Source/core/paint/PaintLayerPainter.h#newcode60 third_party/WebKit/Source/core/paint/PaintLayerPainter.h:60: void repeatFixedPositionObjectInPages(const PaintLayerFragment&, Add a brief comment explaining ...
3 years, 11 months ago (2017-01-03 20:13:38 UTC) #21
Xianzhu
https://codereview.chromium.org/2605333002/diff/40001/third_party/WebKit/Source/core/paint/PaintLayerPainter.h File third_party/WebKit/Source/core/paint/PaintLayerPainter.h (right): https://codereview.chromium.org/2605333002/diff/40001/third_party/WebKit/Source/core/paint/PaintLayerPainter.h#newcode60 third_party/WebKit/Source/core/paint/PaintLayerPainter.h:60: void repeatFixedPositionObjectInPages(const PaintLayerFragment&, On 2017/01/03 20:13:38, chrishtr wrote: > ...
3 years, 11 months ago (2017-01-03 20:19:20 UTC) #22
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/2605333002/60001
3 years, 11 months ago (2017-01-03 20:19:41 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
3 years, 11 months ago (2017-01-03 22:57:37 UTC) #28
commit-bot: I haz the power
3 years, 11 months ago (2017-01-03 23:02:29 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/574be21bec113164af880b853f9f25209183ae90
Cr-Commit-Position: refs/heads/master@{#441235}

Powered by Google App Engine
This is Rietveld 408576698