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

Issue 2641163002: [pdf] Allow invalidation during paint.

Created:
3 years, 11 months ago by dsinclair
Modified:
3 years, 11 months ago
Reviewers:
Tom Sepez, Lei Zhang
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[pdf] Allow invalidation during paint. When JavaScript fires inside a PDF document it's possible to trigger an invalidation while the paint manager is painting. This CL allows the invalidation instead of triggering a DCHECK. BUG=chromium:681351

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -3 lines) Patch
M pdf/paint_manager.cc View 2 chunks +5 lines, -3 lines 2 comments Download

Messages

Total messages: 10 (7 generated)
dsinclair
PTAL. Not sure who the right person to review this would be? I'm not very ...
3 years, 11 months ago (2017-01-19 14:53:37 UTC) #4
Tom Sepez
https://codereview.chromium.org/2641163002/diff/1/pdf/paint_manager.cc File pdf/paint_manager.cc (right): https://codereview.chromium.org/2641163002/diff/1/pdf/paint_manager.cc#newcode144 pdf/paint_manager.cc:144: // Note, we can't DCHECK(!in_paint_) here because javascript inside ...
3 years, 11 months ago (2017-01-19 17:43:37 UTC) #9
dsinclair
3 years, 11 months ago (2017-01-19 18:56:10 UTC) #10
https://codereview.chromium.org/2641163002/diff/1/pdf/paint_manager.cc
File pdf/paint_manager.cc (right):

https://codereview.chromium.org/2641163002/diff/1/pdf/paint_manager.cc#newcod...
pdf/paint_manager.cc:144: // Note, we can't DCHECK(!in_paint_) here because
javascript inside the
On 2017/01/19 17:43:37, Tom Sepez wrote:
> Do we just want to no-op it in this special case?  Continuing might re-enter
> things that weren't expecting it ...


I don't know. My concern when I did this originally was that we'd lose the
invalidation as it won't get added to the aggregator_.InvalidateRect() below. Is
that going to leave us failing to paint something we should have painted?

As I said, I don't understand this code well enough to know which is the right
direction to go .....

Powered by Google App Engine
This is Rietveld 408576698