Gecko:Layers: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 229: Line 229:
A note about how to implement imperative animation in this world:
A note about how to implement imperative animation in this world:
CoreAnimation will ask a layer to redraw it's contents at particular timestamp. The layer can choose to do so, or ignore the request.
CoreAnimation will ask a layer to redraw it's contents at particular timestamp. The layer can choose to do so, or ignore the request.
=== WebKit ===
Here are some observations on WebKit's implementation:
Adding the style "-webkit-perspective: 800;" to a div will promote it to a layer. This seems to cause two regressions:
# This content will move separately from the background. i.e. The div and the rest of the content do not move together, the div lags behind.
# Having this layer also causes us to repaint all of the background content when scrolling, instead of just the newly exposed area.
It would be nice if we could avoid these problems.


== Bas ==
== Bas ==
Confirmed users
523

edits

Navigation menu