Bug 163757

Summary: Use IntSize::unclampedArea() in PDFDocumentImage::updateCachedImageIfNeeded()
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: PDFAssignee: David Kilzer (:ddkilzer) <ddkilzer>
Severity: Normal CC: bfulgham, commit-queue, sabouhallawa, simon.fraser, thorton
Priority: P2    
Version: Safari 10   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=163696
Description Flags
Patch v1 none

Description David Kilzer (:ddkilzer) 2016-10-20 13:40:14 PDT
Use IntSize::unclampedArea() in PDFDocumentImage::updateCachedImageIfNeeded().

Broken out from the original patch posted to Bug 163696.

Noticed while looking for places where "width * height *4" was computed.
Comment 1 David Kilzer (:ddkilzer) 2016-10-20 13:41:38 PDT
Created attachment 292245 [details]
Patch v1
Comment 2 Brent Fulgham 2016-10-21 09:12:44 PDT
Comment on attachment 292245 [details]
Patch v1

View in context: https://bugs.webkit.org/attachment.cgi?id=292245&action=review

Nice! r=me.

> Source/WebCore/ChangeLog:13
> +        previously.  Also gets rid of more safeCast<size_t>() use.

Comment 3 WebKit Commit Bot 2016-10-21 09:16:52 PDT
Comment on attachment 292245 [details]
Patch v1

Clearing flags on attachment: 292245

Committed r207676: <http://trac.webkit.org/changeset/207676>
Comment 4 WebKit Commit Bot 2016-10-21 09:16:56 PDT
All reviewed patches have been landed.  Closing bug.