Hide canvas overflow for high dpi screens.

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=826938