Confirmed users
856
edits
| Line 73: | Line 73: | ||
== Redrawing == | == Redrawing == | ||
Plug-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 | All plug-ins should implement nextFrameTime for their CALayer. Plug-ins that want their next repaint to happen via NPN_InvalidateRect can return '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. | 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. | ||