Plugins:CoreAnimationDrawingModelR2: Difference between revisions

Line 73: Line 73:
== Redrawing ==
== Redrawing ==


Plugin-ins can schedule repaints via their CALayer's nextFrameTime or they may paint at any time using [[https://developer-stage.mozilla.org/en/NPN_InvalidateRect NPN_InvalidateRect]].
Plugin-ins can schedule repaints via their CALayer's nextFrameTime or they may paint at any time using [https://developer-stage.mozilla.org/en/NPN_InvalidateRect NPN_InvalidateRect].


All plugin-ins should implement nextFrameTime for their CALayer. Plug-ins that never want to schedule drawing via nextFrameTime can return 'inf'.
All plugin-ins should implement nextFrameTime for their CALayer. Plug-ins that never want to schedule drawing via nextFrameTime can return 'inf'.


Browsers should re-check nextFrameTime any time a paint happens, whether it was scheduled via nextFrameTime or forced via NPN_InvalidateRect. This allows plugins to change their next frame time and to re-start scheduled painting after returning 'inf' from nextFrameTime.
Browsers should re-check nextFrameTime any time a paint happens, whether it was scheduled via nextFrameTime or forced via NPN_InvalidateRect. This allows plugins to change their next frame time and to re-start scheduled painting after returning 'inf' from nextFrameTime.
Confirmed users, Bureaucrats and Sysops emeriti
1,680

edits