-
simon.fraser@apple.com authored
Reviewed by Dan Bernstein and Adele Peterson. Support reflections on composited layers https://bugs.webkit.org/show_bug.cgi?id=31885 Implement reflections (via -webkit-box-reflect:) on compositing layers. We add to the GraphicsLayer the notion of having a replica, and being a replicated layer. The replica layer is not parented in the tree, but referenced by another layer. RenderLayerBacking sets this up when it finds RenderLayers for reflections. GraphicsLayerCA implements rendering of replica layers by cloning CA layers, and copying their properties, including animations and contents. Deep reflections are supported by a hash of clone layers on each GraphicsLayerCA, indexed by the path down the tree to each replica instance. When GraphicsLayerCA properties are changed, in most cases the clones must also be updated. Tests: compositing/masks...
823f73c8