Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(6)

Issue 4515061: [PDF] Fix Chrome crash - don't assume that SkDraw.fClipStack != NULL. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by Steve VanDeBogart
Modified:
13 years, 1 month ago
Reviewers:
Chris Guillory, reed1
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

[PDF] Fix Chrome crash - don't assume that SkDraw.fClipStack != NULL. Chrome bug is crbug.com/82198. Committed: http://code.google.com/p/skia/source/detail?r=1306

Patch Set 1 #

Patch Set 2 : nits #

Total comments: 5

Patch Set 3 : Address comments #

Total comments: 2

Patch Set 4 : Address comments #

Total comments: 4

Patch Set 5 : Fix up comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -18 lines) Patch
M include/pdf/SkPDFDevice.h View 2 chunks +3 lines, -3 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 3 4 15 chunks +32 lines, -15 lines 0 comments Download

Messages

Total messages: 11
Steve VanDeBogart
13 years, 1 month ago (2011-05-11 05:45:12 UTC) #1
Chris Guillory
http://codereview.appspot.com/4515061/diff/2001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): http://codereview.appspot.com/4515061/diff/2001/src/pdf/SkPDFDevice.cpp#newcode1041 src/pdf/SkPDFDevice.cpp:1041: bool SkPDFDevice::setUpContentEntry(const SkClipStack* passedClipStack, Not following why we need ...
13 years, 1 month ago (2011-05-11 05:49:42 UTC) #2
Steve VanDeBogart
http://codereview.appspot.com/4515061/diff/2001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): http://codereview.appspot.com/4515061/diff/2001/src/pdf/SkPDFDevice.cpp#newcode1041 src/pdf/SkPDFDevice.cpp:1041: bool SkPDFDevice::setUpContentEntry(const SkClipStack* passedClipStack, On 2011/05/11 05:49:42, Chris Guillory ...
13 years, 1 month ago (2011-05-11 06:01:19 UTC) #3
Chris Guillory
May I just need this part explained in person. http://codereview.appspot.com/4515061/diff/2001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): http://codereview.appspot.com/4515061/diff/2001/src/pdf/SkPDFDevice.cpp#newcode1051 src/pdf/SkPDFDevice.cpp:1051: ...
13 years, 1 month ago (2011-05-11 06:23:33 UTC) #4
reed1
Can we reproduce this outside of chrome? Is this a case of SkCanvas not setting ...
13 years, 1 month ago (2011-05-11 13:12:40 UTC) #5
Steve VanDeBogart
On 2011/05/11 13:12:40, reed1 wrote: > Can we reproduce this outside of chrome? Is this ...
13 years, 1 month ago (2011-05-11 15:48:45 UTC) #6
reed1
Gotcha. Lets go with your change as is then. On Wed, May 11, 2011 at ...
13 years, 1 month ago (2011-05-11 16:33:21 UTC) #7
Chris Guillory
LGTM. One nit. http://codereview.appspot.com/4515061/diff/4/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): http://codereview.appspot.com/4515061/diff/4/src/pdf/SkPDFDevice.cpp#newcode1051 src/pdf/SkPDFDevice.cpp:1051: // fill it in, do so, ...
13 years, 1 month ago (2011-05-11 17:54:13 UTC) #8
Steve VanDeBogart
http://codereview.appspot.com/4515061/diff/4/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): http://codereview.appspot.com/4515061/diff/4/src/pdf/SkPDFDevice.cpp#newcode1051 src/pdf/SkPDFDevice.cpp:1051: // fill it in, do so, bail otherwise. On ...
13 years, 1 month ago (2011-05-11 18:29:35 UTC) #9
Chris Guillory
Great! LGTM with nits. http://codereview.appspot.com/4515061/diff/9002/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): http://codereview.appspot.com/4515061/diff/9002/src/pdf/SkPDFDevice.cpp#newcode1050 src/pdf/SkPDFDevice.cpp:1050: // Technically, the clip stack ...
13 years, 1 month ago (2011-05-11 18:42:05 UTC) #10
Steve VanDeBogart
13 years, 1 month ago (2011-05-11 18:45:37 UTC) #11
Thanks.

http://codereview.appspot.com/4515061/diff/9002/src/pdf/SkPDFDevice.cpp
File src/pdf/SkPDFDevice.cpp (right):

http://codereview.appspot.com/4515061/diff/9002/src/pdf/SkPDFDevice.cpp#newco...
src/pdf/SkPDFDevice.cpp:1050: // Technically, the clip stack in the SkDraw is
optional.
On 2011/05/11 18:42:05, Chris Guillory wrote:
> Nit: Optional: 
> (1) in the SkDraw -> can come from a SkDraw where it
> (2) in the SkDraw -> which comes from a SkDraw
> * Which ever is more true.

Done.

http://codereview.appspot.com/4515061/diff/9002/src/pdf/SkPDFDevice.cpp#newco...
src/pdf/SkPDFDevice.cpp:1056: // GrphicStackState::updateClip expects the clip
stack to have
On 2011/05/11 18:42:05, Chris Guillory wrote:
> Nit: GrphicStackState -> GraphicStackState

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b