The ImageBuffer should inherit the accelerated bit from the context it will eventually be painted into. However, doing so breaks some tests when run with --accelerated-drawing on, and clearly also breaks these tests in Safari. Needs more investigation (and possibly bugs filed on other components).
Patch in bug 149469 cover this bug as well. Should we mark this duplicate and rebase attached patch in other bug and land or something else is needed?