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

Issue 1592493002: Fix links in inline continuations in printed PDF (Closed)

Created:
4 years, 11 months ago by Xianzhu
Modified:
4 years, 11 months ago
Reviewers:
chrishtr
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, slimming-paint-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix links in inline continuations in printed PDF We output links as clickable rects to PDF when printing. If a link contains continuations, the paint rect intersection check of the containing anonymous block may cause miss of output of the PDF rect, because the visual overflow rect of the anonymous block is empty or is smaller than the link PDF rect. Now when printing, we let the parent block check for intersection for the anonymous block of the link. BUG=535514 TEST=PrintContextTest.LinkTargetComplex Committed: https://crrev.com/83c02707dd7c8d48c47503d10734d67dd18ce254 Cr-Commit-Position: refs/heads/master@{#370260}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Remove an extra condition #

Total comments: 3

Patch Set 3 : Fix unit test #

Patch Set 4 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -35 lines) Patch
M third_party/WebKit/Source/core/page/PrintContextTest.cpp View 1 2 3 3 chunks +43 lines, -28 lines 0 comments Download
M third_party/WebKit/Source/core/paint/BlockPainter.cpp View 1 2 3 2 chunks +13 lines, -3 lines 1 comment Download
M third_party/WebKit/Source/core/paint/InlinePainter.cpp View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/LineBoxListPainter.cpp View 1 2 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (5 generated)
Xianzhu
4 years, 11 months ago (2016-01-14 22:51:47 UTC) #2
chrishtr
https://codereview.chromium.org/1592493002/diff/1/third_party/WebKit/Source/core/paint/BlockPainter.cpp File third_party/WebKit/Source/core/paint/BlockPainter.cpp (right): https://codereview.chromium.org/1592493002/diff/1/third_party/WebKit/Source/core/paint/BlockPainter.cpp#newcode215 third_party/WebKit/Source/core/paint/BlockPainter.cpp:215: if (paintInfo.isPrinting() && m_layoutBlock.isAnonymousBlock() && !m_layoutBlock.previousSibling() && m_layoutBlock.childrenInline()) { ...
4 years, 11 months ago (2016-01-14 23:29:32 UTC) #3
Xianzhu
https://codereview.chromium.org/1592493002/diff/1/third_party/WebKit/Source/core/paint/BlockPainter.cpp File third_party/WebKit/Source/core/paint/BlockPainter.cpp (right): https://codereview.chromium.org/1592493002/diff/1/third_party/WebKit/Source/core/paint/BlockPainter.cpp#newcode215 third_party/WebKit/Source/core/paint/BlockPainter.cpp:215: if (paintInfo.isPrinting() && m_layoutBlock.isAnonymousBlock() && !m_layoutBlock.previousSibling() && m_layoutBlock.childrenInline()) { ...
4 years, 11 months ago (2016-01-14 23:41:41 UTC) #4
chrishtr
https://codereview.chromium.org/1592493002/diff/1/third_party/WebKit/Source/core/paint/BlockPainter.cpp File third_party/WebKit/Source/core/paint/BlockPainter.cpp (right): https://codereview.chromium.org/1592493002/diff/1/third_party/WebKit/Source/core/paint/BlockPainter.cpp#newcode215 third_party/WebKit/Source/core/paint/BlockPainter.cpp:215: if (paintInfo.isPrinting() && m_layoutBlock.isAnonymousBlock() && !m_layoutBlock.previousSibling() && m_layoutBlock.childrenInline()) { ...
4 years, 11 months ago (2016-01-14 23:56:00 UTC) #5
Xianzhu
https://codereview.chromium.org/1592493002/diff/1/third_party/WebKit/Source/core/paint/BlockPainter.cpp File third_party/WebKit/Source/core/paint/BlockPainter.cpp (right): https://codereview.chromium.org/1592493002/diff/1/third_party/WebKit/Source/core/paint/BlockPainter.cpp#newcode215 third_party/WebKit/Source/core/paint/BlockPainter.cpp:215: if (paintInfo.isPrinting() && m_layoutBlock.isAnonymousBlock() && !m_layoutBlock.previousSibling() && m_layoutBlock.childrenInline()) { ...
4 years, 11 months ago (2016-01-15 01:51:00 UTC) #6
chrishtr
https://codereview.chromium.org/1592493002/diff/1/third_party/WebKit/Source/core/paint/BlockPainter.cpp File third_party/WebKit/Source/core/paint/BlockPainter.cpp (right): https://codereview.chromium.org/1592493002/diff/1/third_party/WebKit/Source/core/paint/BlockPainter.cpp#newcode215 third_party/WebKit/Source/core/paint/BlockPainter.cpp:215: if (paintInfo.isPrinting() && m_layoutBlock.isAnonymousBlock() && !m_layoutBlock.previousSibling() && m_layoutBlock.childrenInline()) { ...
4 years, 11 months ago (2016-01-15 02:20:02 UTC) #7
Xianzhu
https://codereview.chromium.org/1592493002/diff/1/third_party/WebKit/Source/core/paint/BlockPainter.cpp File third_party/WebKit/Source/core/paint/BlockPainter.cpp (right): https://codereview.chromium.org/1592493002/diff/1/third_party/WebKit/Source/core/paint/BlockPainter.cpp#newcode215 third_party/WebKit/Source/core/paint/BlockPainter.cpp:215: if (paintInfo.isPrinting() && m_layoutBlock.isAnonymousBlock() && !m_layoutBlock.previousSibling() && m_layoutBlock.childrenInline()) { ...
4 years, 11 months ago (2016-01-15 05:06:44 UTC) #8
chrishtr
https://codereview.chromium.org/1592493002/diff/20001/third_party/WebKit/Source/core/paint/BlockPainter.cpp File third_party/WebKit/Source/core/paint/BlockPainter.cpp (right): https://codereview.chromium.org/1592493002/diff/20001/third_party/WebKit/Source/core/paint/BlockPainter.cpp#newcode215 third_party/WebKit/Source/core/paint/BlockPainter.cpp:215: if (paintInfo.isPrinting() && m_layoutBlock.isAnonymousBlock() && m_layoutBlock.childrenInline()) { How about: ...
4 years, 11 months ago (2016-01-15 18:16:35 UTC) #9
Xianzhu
https://codereview.chromium.org/1592493002/diff/20001/third_party/WebKit/Source/core/paint/BlockPainter.cpp File third_party/WebKit/Source/core/paint/BlockPainter.cpp (right): https://codereview.chromium.org/1592493002/diff/20001/third_party/WebKit/Source/core/paint/BlockPainter.cpp#newcode215 third_party/WebKit/Source/core/paint/BlockPainter.cpp:215: if (paintInfo.isPrinting() && m_layoutBlock.isAnonymousBlock() && m_layoutBlock.childrenInline()) { On 2016/01/15 ...
4 years, 11 months ago (2016-01-15 18:36:29 UTC) #10
chrishtr
On 2016/01/15 at 18:36:29, wangxianzhu wrote: > https://codereview.chromium.org/1592493002/diff/20001/third_party/WebKit/Source/core/paint/BlockPainter.cpp > File third_party/WebKit/Source/core/paint/BlockPainter.cpp (right): > > https://codereview.chromium.org/1592493002/diff/20001/third_party/WebKit/Source/core/paint/BlockPainter.cpp#newcode215 ...
4 years, 11 months ago (2016-01-15 20:40:45 UTC) #11
Xianzhu
On 2016/01/15 20:40:45, chrishtr wrote: > On 2016/01/15 at 18:36:29, wangxianzhu wrote: > > > ...
4 years, 11 months ago (2016-01-15 21:56:01 UTC) #12
chrishtr
On 2016/01/15 at 21:56:01, wangxianzhu wrote: > On 2016/01/15 20:40:45, chrishtr wrote: > > On ...
4 years, 11 months ago (2016-01-16 01:24:47 UTC) #14
Xianzhu
On 2016/01/16 01:24:47, chrishtr wrote: > On 2016/01/15 at 21:56:01, wangxianzhu wrote: > > On ...
4 years, 11 months ago (2016-01-16 05:46:52 UTC) #15
chrishtr
On 2016/01/15 at 21:56:01, wangxianzhu wrote: > On 2016/01/15 20:40:45, chrishtr wrote: > > On ...
4 years, 11 months ago (2016-01-19 17:00:15 UTC) #16
Xianzhu
On 2016/01/19 17:00:15, chrishtr wrote: > On 2016/01/15 at 21:56:01, wangxianzhu wrote: > > On ...
4 years, 11 months ago (2016-01-19 18:06:53 UTC) #17
chrishtr
On 2016/01/19 at 18:06:53, wangxianzhu wrote: > On 2016/01/19 17:00:15, chrishtr wrote: > > On ...
4 years, 11 months ago (2016-01-19 18:15:28 UTC) #18
Xianzhu
https://codereview.chromium.org/1592493002/diff/20001/third_party/WebKit/Source/core/paint/BlockPainter.cpp File third_party/WebKit/Source/core/paint/BlockPainter.cpp (right): https://codereview.chromium.org/1592493002/diff/20001/third_party/WebKit/Source/core/paint/BlockPainter.cpp#newcode221 third_party/WebKit/Source/core/paint/BlockPainter.cpp:221: return BlockPainter(toLayoutBlock(*m_layoutBlock.parent())).intersectsPaintRect(paintInfo, paintOffset); Now call m_layoutBlock.addElementVisualOverflowRects() instead of delegating ...
4 years, 11 months ago (2016-01-19 20:25:33 UTC) #19
chrishtr
https://codereview.chromium.org/1592493002/diff/60001/third_party/WebKit/Source/core/paint/BlockPainter.cpp File third_party/WebKit/Source/core/paint/BlockPainter.cpp (right): https://codereview.chromium.org/1592493002/diff/60001/third_party/WebKit/Source/core/paint/BlockPainter.cpp#newcode218 third_party/WebKit/Source/core/paint/BlockPainter.cpp:218: if (paintInfo.isPrinting() && m_layoutBlock.isAnonymousBlock() && m_layoutBlock.childrenInline()) { Last nit ...
4 years, 11 months ago (2016-01-19 23:25:42 UTC) #20
Xianzhu
On 2016/01/19 23:25:42, chrishtr wrote: > https://codereview.chromium.org/1592493002/diff/60001/third_party/WebKit/Source/core/paint/BlockPainter.cpp > File third_party/WebKit/Source/core/paint/BlockPainter.cpp (right): > > https://codereview.chromium.org/1592493002/diff/60001/third_party/WebKit/Source/core/paint/BlockPainter.cpp#newcode218 > ...
4 years, 11 months ago (2016-01-19 23:35:38 UTC) #21
chrishtr
lgtm
4 years, 11 months ago (2016-01-19 23:39:53 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1592493002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1592493002/60001
4 years, 11 months ago (2016-01-19 23:41:13 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2016-01-20 01:30:01 UTC) #26
commit-bot: I haz the power
4 years, 11 months ago (2016-01-20 01:30:52 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/83c02707dd7c8d48c47503d10734d67dd18ce254
Cr-Commit-Position: refs/heads/master@{#370260}

Powered by Google App Engine
This is Rietveld 408576698