Make it compatible with upstream API
Check GL context for current in Render to avoid unexpected situation
Don't recalculate viewport for wrong presShell
[xulrunner] Sync with upstream. Merge remote-tracking branch 'origin/embedlite_31' into nemo_embedlite_31
[xulrunner] Add workarounds for wrong viewport and scrolloffset