New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 837279 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Yesterday
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug-Regression



Sign in to add a comment

SVG appearing outside IMG bounds disappears when printed

Project Member Reported by jsb...@chromium.org, Apr 26 2018

Issue description

A skia fix for  issue 770032  and  issue 772685  appears to have broken content in a different way

Steps to reproduce the problem:
1. Save the files locally
2. Open booklet.html
3. Observe that the image is contained in its bounding box
4. Print - make sure Save as PDF is selected

hat is the expected behavior?
Print matches screen - the image is contained in its bounding box

What went wrong?
Parts of the SVG image which are clipped within the SVG itself - and occur outside the image bounds - no longer appear in print preview.

I bisected the change in behavior (from bad to... also bad) to https://chromium.googlesource.com/chromium/src/+log/abc55490658e0ec0bf2be019449b7248b923ce90..45cabf37885e82ddfa0fbe9d76f6ec2996d2342d which includes the skia roll:

https://chromium.googlesource.com/chromium/src/+/dadab4dd963f914bde1b4019f835b9c0c5c895be

Attached images 542287.png and 542297.png show before/after behavior. (Note that neither is correct)

Marking as Regression although I'm not sure the new-bad behavior is strictly worse.
 
booklet.html
165 bytes View Download
villis.svg
54.8 KB Download
542287.png
175 KB View Download
542297.png
95.4 KB View Download

Comment 1 by jsb...@chromium.org, Apr 26 2018

Components: -Internals>Skia Internals>Skia>PDF

Comment 2 by jsb...@chromium.org, Apr 26 2018

Labels: -Pri-3 Pri-2

Comment 3 by bsalo...@google.com, Apr 26 2018

Owner: halcanary@chromium.org
Status: Started (was: Untriaged)
https://review.skia.org/132092 may fix this.
Project Member

Comment 5 by bugdroid1@chromium.org, Jun 5 2018

The following revision refers to this bug:
  https://skia.googlesource.com/skia/+/d00ef066198b40aa0b02603fe4766b31996eb835

commit d00ef066198b40aa0b02603fe4766b31996eb835
Author: Hal Canary <halcanary@google.com>
Date: Tue Jun 05 17:36:29 2018

SkPDF: Fastpath for clipstack flattening

BUG:  chromium:837279 

Change-Id: I79a675e7d9e713617711948e491e28babe06b1a2
Reviewed-on: https://skia-review.googlesource.com/132092
Auto-Submit: Hal Canary <halcanary@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>

[modify] https://crrev.com/d00ef066198b40aa0b02603fe4766b31996eb835/src/pdf/SkPDFDevice.cpp

Comment 6 by jsb...@chromium.org, Jun 12 2018

Confirmed, appears to work correctly in a local build of Chrome at ToT at r566606 (which includes a skia roll to 8e4d09ae7af123eb3441bef8e39492c2cebfbfbb, much later than the above rev)

Comment 7 by halcanary@google.com, Yesterday (39 hours ago)

Status: Fixed (was: Started)
Screen Shot 2019-01-21 at 4.20.38 PM.png
560 KB View Download

Comment 8 by jsbell@google.com, Today (19 hours ago)

A (much delayed) thanks for fixing this! 

Sign in to add a comment