DescriptionFix graphics corruption that can occur in the PDF viewer when scrolling
In a PDF, if we scroll in a reverse direction to the direction we originally scrolled
(within the same paint) and there were invalidations that happened in-between we
may end up incorrectly clipping the invalidated rects (see crbug.com/488390). This bug
doesn't exist in the original implementation
(ppapi/utility/graphics/paint_aggregator.cc) which uses a different method
of handling invalidations that occur after a scroll. The problem is that
when we scroll the invalidated region, we clip it to the scroll rect. This
can cause us to lose information about what the invalidated region was if
it gets scrolled back into view. We either need to not do this clipping or
disallow combining scrolls that occur in different directions with
invalidations that happen in-between.
BUG=488390
Committed: https://crrev.com/60dbedb323463b79e3c254c38e716efc2d31fbbe
Cr-Commit-Position: refs/heads/master@{#332354}
Patch Set 1 #Patch Set 2 : #
Total comments: 3
Patch Set 3 : #Messages
Total messages: 10 (2 generated)
|