[Webkit-unassigned] [Bug 126160] [CSS Blending] Webkit-blend-mode fails for accelerated parent with overflow:hidden

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 27 07:44:17 PST 2014


https://bugs.webkit.org/show_bug.cgi?id=126160





--- Comment #3 from Mihai Tica <mitica at adobe.com>  2014-02-27 07:41:23 PST ---
Created an attachment (id=225369)
 --> (https://bugs.webkit.org/attachment.cgi?id=225369&action=review)
Prototype: not for review

This is a solution discussed with Simon Fraser when initially implementing composited mix-blend-mode.

For this use case, the parent creates a descendant clipping layer, which prevents blending for the second child.
The proposed solution, (prototyped in this patch) is:

If a layer has clipping, is composited and has a blended child, it propagates clipping by setting ancestor clipping layers for each child, instead of setting a descendant clipping layer on itself.

If you have the following structure, for example:
<parent overflow:hidden composited>
  <child1>
  <child2>
     <blended child>
        <child3>

the parent would no longer create a descendant clipping layer. Instead, child1 and child2 would get ancestor clipping layers.

Note that this patch is just a proof of concept, it should be a starting point and only provides minimal tested functionality.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list