Confirmed users, Bureaucrats and Sysops emeriti
1,680
edits
| Line 75: | Line 75: | ||
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]. | 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 plug-ins should implement nextFrameTime for their CALayer. Plug-ins that want their next repaint to happen via NPN_InvalidateRect can return ' | All plug-ins should implement nextFrameTime for their CALayer. Plug-ins that want their next repaint to happen via NPN_InvalidateRect can return 'INFINITY' 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. | ||