|
|
| Line 15: |
Line 15: |
| == 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]. | | Plug-ins may inform the browser of updated content 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 '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 'INFINITY' from nextFrameTime.
| |