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

Issue 711133002: SkDocument_PDF does somthing with the trimBox parameter. (Closed)

Created:
6 years, 1 month ago by hal.canary
Modified:
6 years, 1 month ago
Reviewers:
reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

SkDocument_PDF does somthing with the trimBox parameter. Fixes change introduced in http://crrev.com/645563002 This will allow SkDocument to be a drop-in repalcement to SkPDFDocument/SkPDFDevice in Chromium. Committed: https://skia.googlesource.com/skia/+/93f816129356d6764a9402817cc36bffd8f991fb

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M src/doc/SkDocument_PDF.cpp View 1 chunk +2 lines, -0 lines 1 comment Download

Messages

Total messages: 9 (2 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/711133002/1
6 years, 1 month ago (2014-11-10 21:53:08 UTC) #2
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 1 month ago (2014-11-10 21:53:09 UTC) #3
hal.canary
PTAL
6 years, 1 month ago (2014-11-10 21:53:11 UTC) #5
reed1
Assuming this is what trimbox means, lgtm btw -- could be slightly more clear as ...
6 years, 1 month ago (2014-11-10 22:01:38 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://skia.googlesource.com/skia/+/93f816129356d6764a9402817cc36bffd8f991fb
6 years, 1 month ago (2014-11-10 22:02:01 UTC) #7
vandebo (ex-Chrome)
https://codereview.chromium.org/711133002/diff/1/src/doc/SkDocument_PDF.cpp File src/doc/SkDocument_PDF.cpp (right): https://codereview.chromium.org/711133002/diff/1/src/doc/SkDocument_PDF.cpp#newcode48 src/doc/SkDocument_PDF.cpp:48: fCanvas->clipRect(SkRect::MakeWH(trimBox.width(), trimBox.height())); Do headers and footers still work with ...
6 years, 1 month ago (2014-11-11 15:44:53 UTC) #8
hal.canary
6 years, 1 month ago (2014-11-11 16:15:53 UTC) #9
Message was sent while issue was closed.
On 2014/11/11 15:44:53, vandebo (ex-Chrome) wrote:
> https://codereview.chromium.org/711133002/diff/1/src/doc/SkDocument_PDF.cpp
> File src/doc/SkDocument_PDF.cpp (right):
> 
>
https://codereview.chromium.org/711133002/diff/1/src/doc/SkDocument_PDF.cpp#n...
> src/doc/SkDocument_PDF.cpp:48:
fCanvas->clipRect(SkRect::MakeWH(trimBox.width(),
> trimBox.height()));
> Do headers and footers still work with this approach?

I tested this in Chrome.  They have been not using trimbox when they have
footers and headers.  This change is necessary to make SkDocument a drop in
replacement for SkPDFDocument.  See http://crrev.com//694213002 .

Powered by Google App Engine
This is Rietveld 408576698