Bug 201381

Summary: Make "clips compositing descendants" an indirect compositing reason
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: CompositingAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: koivisto, sam, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch koivisto: review+

Simon Fraser (smfr)
Reported 2019-08-31 13:28:23 PDT
Make "clips compositing descendants" an indirect compositing reason
Attachments
Patch (11.91 KB, patch)
2019-08-31 13:30 PDT, Simon Fraser (smfr)
no flags
Patch (12.05 KB, patch)
2019-09-02 10:00 PDT, Simon Fraser (smfr)
koivisto: review+
Simon Fraser (smfr)
Comment 1 2019-08-31 13:30:46 PDT
Sam Weinig
Comment 2 2019-08-31 15:52:45 PDT
Comment on attachment 377805 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=377805&action=review > Source/WebCore/ChangeLog:10 > + > + Whether a layer has to composite to clip composited descendants is an "indirect" reason, > + just like having to composite for filters if there's a composited descendant. So add > + IndirectCompositingReason::Clipping, and have computeIndirectCompositingReason() compute this. What is the goal/benefit of computing this?
Simon Fraser (smfr)
Comment 3 2019-08-31 16:12:30 PDT
(In reply to Sam Weinig from comment #2) > Comment on attachment 377805 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=377805&action=review > > > Source/WebCore/ChangeLog:10 > > + > > + Whether a layer has to composite to clip composited descendants is an "indirect" reason, > > + just like having to composite for filters if there's a composited descendant. So add > > + IndirectCompositingReason::Clipping, and have computeIndirectCompositingReason() compute this. > > What is the goal/benefit of computing this? We already compute this. This patch is some cleanup prior to fixing bug 201330.
Sam Weinig
Comment 4 2019-09-01 17:36:42 PDT
(In reply to Simon Fraser (smfr) from comment #3) > (In reply to Sam Weinig from comment #2) > > Comment on attachment 377805 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=377805&action=review > > > > > Source/WebCore/ChangeLog:10 > > > + > > > + Whether a layer has to composite to clip composited descendants is an "indirect" reason, > > > + just like having to composite for filters if there's a composited descendant. So add > > > + IndirectCompositingReason::Clipping, and have computeIndirectCompositingReason() compute this. > > > > What is the goal/benefit of computing this? > > We already compute this. This patch is some cleanup prior to fixing bug > 201330. Ok. Can you add that to the ChangeLog?
Simon Fraser (smfr)
Comment 5 2019-09-02 10:00:15 PDT
Antti Koivisto
Comment 6 2019-09-03 11:13:01 PDT
Comment on attachment 377854 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=377854&action=review > Source/WebCore/rendering/RenderLayerCompositor.cpp:3069 > + return IndirectCompositingReason::None; Would be nice to modernise this to use Optional/OptionSet at some point.
Simon Fraser (smfr)
Comment 7 2019-09-03 12:49:18 PDT
Radar WebKit Bug Importer
Comment 8 2019-09-03 12:50:18 PDT
Note You need to log in before you can comment on or make changes to this bug.