-
hausmann@webkit.org authored
QPainter::device() is not guaranteed to return a QWidget, so do the safe "cast" with the help of QPaintDevice::devType(). Also fall back to the QApplication::style() if we don't have a widget. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28344 268f45cc-cd09-0410-ab3c-d52691b4dbfc
3feb8109