Bug 197768

Summary: Layer bounds are incorrect for sharing layers that paint with transforms
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: CompositingAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 197561    
Attachments:
Description Flags
Testcase
none
Patch none

Description Simon Fraser (smfr) 2019-05-09 22:19:53 PDT
Created attachment 369545 [details]
Testcase

Attached testcase (with layer borders on) show that we make backing that is much too big when the shared layer has a transform.

We need to do the right transform math when computing composited bounds.
Comment 1 Simon Fraser (smfr) 2019-05-10 22:08:33 PDT
We're getting localClipRect and transforming it, which seems wrong.
Comment 2 Radar WebKit Bug Importer 2019-05-11 11:09:52 PDT
<rdar://problem/50695493>
Comment 3 Simon Fraser (smfr) 2019-05-11 11:11:03 PDT
Created attachment 369654 [details]
Patch
Comment 4 WebKit Commit Bot 2019-05-11 15:22:41 PDT
Comment on attachment 369654 [details]
Patch

Clearing flags on attachment: 369654

Committed r245208: <https://trac.webkit.org/changeset/245208>
Comment 5 WebKit Commit Bot 2019-05-11 15:22:42 PDT
All reviewed patches have been landed.  Closing bug.