Bug #1994 ยป safari_no_js_fix_20130623a.diff
src/Wt/WPaintedWidget.C | ||
---|---|---|
// on older browsers, inline svg is only supported in xhtml mode. HTML5
|
||
// also allows inline svg
|
||
// Safari 5 and Opera 11 do not seem to support inline svg in html mode
|
||
method = HtmlCanvas;
|
||
method = env.javaScript() ? HtmlCanvas : PngImage;
|
||
else
|
||
if (!env.javaScript())
|
||
method = InlineSvgVml;
|
||
... | ... | |
if (method == InlineSvgVml)
|
||
painter_ = new WWidgetVectorPainter(this, WWidgetPainter::InlineSvg);
|
||
else if (method == PngImage)
|
||
painter_ = new WWidgetRasterPainter(this);
|
||
else
|
||
painter_ = new WWidgetCanvasPainter(this);
|
||