Ask a canvas' rendering context if it is accelerated instead tying it directly to webgl
Created attachment 62978 [details] Patch
Comment on attachment 62978 [details] Patch > #if ENABLE(3D_CANVAS) > HTMLCanvasElement* canvas = static_cast<HTMLCanvasElement*>(node()); > - return canvas && canvas->is3D(); > + return canvas && canvas->renderingContext() && canvas->renderingContext()->isAccelerated(); No need for the #if ENABLE(3D_CANVAS) any more?
True, I'll get rid of the #ifs.
Committed r64308: <http://trac.webkit.org/changeset/64308>